CVE-2024-50286: ksmbd: fix slab-use-after-free in ksmbd_smb2_session_create
In the Linux kernel, the following vulnerability has been resolved:
ksmbd: fix slab-use-after-free in ksmbdsmb2sessioncreate
There is a race condition between ksmbdsmb2sessioncreate and ksmbdexpiresession. This patch add missing sessionstablelock while adding/deleting session from global session table.
Other sources
This CVE was automatically created from a reference found in an email or other text. If you are reading this, then this CVE entry is probably erroneous, since this text should be replaced by the official CVE description automatically.
— Launchpad
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 5.10.223-1Fixed in 5.10.234-1Fixed in 6.1.129-1Fixed in 6.1.135-1Fixed in 6.12.22-1Fixed in 6.12.25-1 - Upgrade
Upgrade
debian/linux-6.1to a version that resolves this vulnerability.Fixed in 6.1.129-1~deb11u1
Event History
Frequently Asked Questions
What is the severity of CVE-2024-50286?
CVE-2024-50286 is classified as a critical vulnerability due to its potential to lead to a use-after-free condition in the Linux kernel.
How do I fix CVE-2024-50286?
To mitigate CVE-2024-50286, users should upgrade to the latest version of the Linux kernel that includes the relevant patch.
What versions of the Linux kernel are affected by CVE-2024-50286?
CVE-2024-50286 affects multiple versions of the Linux kernel from 6.1.117 up to but not including 6.2, as well as several release candidate versions of 6.12.
What does CVE-2024-50286 involve?
CVE-2024-50286 involves a race condition between session creation and expiration in the ksmbd module of the Linux kernel.
Is CVE-2024-50286 related to any other vulnerabilities?
CVE-2024-50286 specifically addresses issues within the ksmbd service, but it may have implications for systems relying on similar networking functionalities.