| 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-50283: ksmbd: fix slab-use-after-free in smb3_preauth_hash_rsp |
| |
| Description |
| =========== |
| |
| In the Linux kernel, the following vulnerability has been resolved: |
| |
| ksmbd: fix slab-use-after-free in smb3_preauth_hash_rsp |
| |
| ksmbd_user_session_put should be called under smb3_preauth_hash_rsp(). |
| It will avoid freeing session before calling smb3_preauth_hash_rsp(). |
| |
| The Linux kernel CVE team has assigned CVE-2024-50283 to this issue. |
| |
| |
| Affected and fixed versions |
| =========================== |
| |
| Issue introduced in 5.15 with commit 0626e6641f6b467447c81dd7678a69c66f7746cf and fixed in 5.15.174 with commit cb645064e0811053c94e86677f2e58ed29359d62 |
| Issue introduced in 5.15 with commit 0626e6641f6b467447c81dd7678a69c66f7746cf and fixed in 6.1.117 with commit f7557bbca40d4ca8bb1c6c940ac6c95078bd0827 |
| Issue introduced in 5.15 with commit 0626e6641f6b467447c81dd7678a69c66f7746cf and fixed in 6.6.61 with commit c6cdc08c25a868a08068dfc319fa9fce982b8e7f |
| Issue introduced in 5.15 with commit 0626e6641f6b467447c81dd7678a69c66f7746cf and fixed in 6.11.8 with commit 1b6ad475d4ed577d34e0157eb507be00c588bf5c |
| Issue introduced in 5.15 with commit 0626e6641f6b467447c81dd7678a69c66f7746cf and fixed in 6.12 with commit b8fc56fbca7482c1e5c0e3351c6ae78982e25ada |
| |
| 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-50283 |
| 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/server/server.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/cb645064e0811053c94e86677f2e58ed29359d62 |
| https://git.kernel.org/stable/c/f7557bbca40d4ca8bb1c6c940ac6c95078bd0827 |
| https://git.kernel.org/stable/c/c6cdc08c25a868a08068dfc319fa9fce982b8e7f |
| https://git.kernel.org/stable/c/1b6ad475d4ed577d34e0157eb507be00c588bf5c |
| https://git.kernel.org/stable/c/b8fc56fbca7482c1e5c0e3351c6ae78982e25ada |