| From bippy-5f407fcff5a0 Mon Sep 17 00:00:00 2001 |
| From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
| To: <linux-cve-announce@vger.kernel.org> |
| Reply-to: <cve@kernel.org>, <linux-kernel@vger.kernel.org> |
| Subject: CVE-2024-56729: smb: Initialize cfid->tcon before performing network ops |
| |
| Description |
| =========== |
| |
| In the Linux kernel, the following vulnerability has been resolved: |
| |
| smb: Initialize cfid->tcon before performing network ops |
| |
| Avoid leaking a tcon ref when a lease break races with opening the |
| cached directory. Processing the leak break might take a reference to |
| the tcon in cached_dir_lease_break() and then fail to release the ref in |
| cached_dir_offload_close, since cfid->tcon is still NULL. |
| |
| The Linux kernel CVE team has assigned CVE-2024-56729 to this issue. |
| |
| |
| Affected and fixed versions |
| =========================== |
| |
| Issue introduced in 6.1 with commit ebe98f1447bbccf8228335c62d86af02a0ed23f7 and fixed in 6.6.64 with commit 625e2357c8fcfae6e66dcc667dc656fe390bab15 |
| Issue introduced in 6.1 with commit ebe98f1447bbccf8228335c62d86af02a0ed23f7 and fixed in 6.11.11 with commit 4b216c8f9c7d84ef7de33ca60b97e08e03ef3292 |
| Issue introduced in 6.1 with commit ebe98f1447bbccf8228335c62d86af02a0ed23f7 and fixed in 6.12.2 with commit 1b9ab6b648f89441c8a13cb3fd8ca83ffebc5262 |
| Issue introduced in 6.1 with commit ebe98f1447bbccf8228335c62d86af02a0ed23f7 and fixed in 6.13 with commit c353ee4fb119a2582d0e011f66a76a38f5cf984d |
| |
| Please see https://www.kernel.org for a full list of currently supported |
| kernel versions by the kernel community. |
| |
| Unaffected versions might change over time as fixes are backported to |
| older supported kernel versions. The official CVE entry at |
| https://cve.org/CVERecord/?id=CVE-2024-56729 |
| will be updated if fixes are backported, please check that for the most |
| up to date information about this issue. |
| |
| |
| Affected files |
| ============== |
| |
| The file(s) affected by this issue are: |
| fs/smb/client/cached_dir.c |
| |
| |
| Mitigation |
| ========== |
| |
| The Linux kernel CVE team recommends that you update to the latest |
| stable kernel version for this, and many other bugfixes. Individual |
| changes are never tested alone, but rather are part of a larger kernel |
| release. Cherry-picking individual commits is not recommended or |
| supported by the Linux kernel community at all. If however, updating to |
| the latest release is impossible, the individual changes to resolve this |
| issue can be found at these commits: |
| https://git.kernel.org/stable/c/625e2357c8fcfae6e66dcc667dc656fe390bab15 |
| https://git.kernel.org/stable/c/4b216c8f9c7d84ef7de33ca60b97e08e03ef3292 |
| https://git.kernel.org/stable/c/1b9ab6b648f89441c8a13cb3fd8ca83ffebc5262 |
| https://git.kernel.org/stable/c/c353ee4fb119a2582d0e011f66a76a38f5cf984d |