| 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-58087: ksmbd: fix racy issue from session lookup and expire |
| |
| Description |
| =========== |
| |
| In the Linux kernel, the following vulnerability has been resolved: |
| |
| ksmbd: fix racy issue from session lookup and expire |
| |
| Increment the session reference count within the lock for lookup to avoid |
| racy issue with session expire. |
| |
| The Linux kernel CVE team has assigned CVE-2024-58087 to this issue. |
| |
| |
| Affected and fixed versions |
| =========================== |
| |
| Issue introduced in 5.15 with commit 0626e6641f6b467447c81dd7678a69c66f7746cf and fixed in 5.15.176 with commit 2107ab40629aeabbec369cf34b8cf0f288c3eb1b |
| Issue introduced in 5.15 with commit 0626e6641f6b467447c81dd7678a69c66f7746cf and fixed in 6.1.121 with commit 37a0e2b362b3150317fb6e2139de67b1e29ae5ff |
| Issue introduced in 5.15 with commit 0626e6641f6b467447c81dd7678a69c66f7746cf and fixed in 6.6.67 with commit 450a844c045ff0895d41b05a1cbe8febd1acfcfd |
| Issue introduced in 5.15 with commit 0626e6641f6b467447c81dd7678a69c66f7746cf and fixed in 6.12.6 with commit a39e31e22a535d47b14656a7d6a893c7f6cf758c |
| Issue introduced in 5.15 with commit 0626e6641f6b467447c81dd7678a69c66f7746cf and fixed in 6.13 with commit b95629435b84b9ecc0c765995204a4d8a913ed52 |
| |
| 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-58087 |
| 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/auth.c |
| fs/smb/server/mgmt/user_session.c |
| fs/smb/server/server.c |
| fs/smb/server/smb2pdu.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/2107ab40629aeabbec369cf34b8cf0f288c3eb1b |
| https://git.kernel.org/stable/c/37a0e2b362b3150317fb6e2139de67b1e29ae5ff |
| https://git.kernel.org/stable/c/450a844c045ff0895d41b05a1cbe8febd1acfcfd |
| https://git.kernel.org/stable/c/a39e31e22a535d47b14656a7d6a893c7f6cf758c |
| https://git.kernel.org/stable/c/b95629435b84b9ecc0c765995204a4d8a913ed52 |
| https://www.zerodayinitiative.com/advisories/ZDI-25-100/ |