CVE-2024-56601 net: inet: do not leave a dangling sk pointer in inet_create()
A use-after-free vulnerability in the Linux kernel's inet_create function allows attackers to potentially execute code or escalate privileges.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-56601?
CVE-2024-56601 is a high-severity use after free vulnerability in Linux kernel, published on 27 Dec 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
In the Linux kernel, the following vulnerability has been resolved:
net: inet: do not leave a dangling sk pointer in inet_create()
sock_init_data() attaches the allocated sk object to the provided sock object. If inet_create() fails later, the sk object is freed, but the sock object retains the dangling pointer, which may create use-after-free later.
Clear the sk pointer in the sock object on error.
Weakness: CWE-416
Which versions are affected by CVE-2024-56601?
It affects 1 product.
Linux distribution packages (4)
kernel-livepatch-SLE15-SP4_Update_35 SUSE:Linux Enterprise Live Patching 15 SP4 | All versions | 7-150400.2.1 |
kernel-livepatch-SLE15-SP5_Update_22 SUSE:Linux Enterprise Live Patching 15 SP5 | All versions | 6-150500.2.2 |
kernel-livepatch-SLE15-SP6-RT_Update_7 SUSE:Linux Enterprise Live Patching 15 SP6 | All versions | 7-150600.2.1 |
kernel-livepatch-SLE15-SP6_Update_7 SUSE:Linux Enterprise Live Patching 15 SP6 | All versions | 7-150600.2.1 |
Products include Linux kernel.
How do I fix CVE-2024-56601?
Apply the vendor's patch.
Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.
Is CVE-2024-56601 being exploited?
There is no known exploitation of CVE-2024-56601 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as AZL-55539, AZL-55584, BELL-CVE-2024-56601, DEBIAN-CVE-2024-56601, GHSA-hjcm-xj34-6q2q, SUSE-SU-2025:02073-1 and 4 more.