CVE-2024-44973: mm, slub: do not call do_slab_free for kfence object
In the Linux kernel, the following vulnerability has been resolved:
mm, slub: do not call doslabfree for kfence object
In 782f8906f805 the freeing of kfence objects was moved from deep inside doslabfree to the wrapper functions outside. This is a nice change, but unfortunately it missed one spot in kmemcachefreebulk.
This results in a crash like this:
BUG skbuffheadcache (Tainted: G S B E ): Padding overwritten. 0xffff88907fea0f00-0xffff88907fea0fff @offset=3840
slaberr (mm/slub.c:1129) freetopartiallist (mm/slub.c:? mm/slub.c:4036) slabpadcheck (mm/slub.c:864 mm/slub.c:1290) checkslab (mm/slub.c:?) freetopartiallist (mm/slub.c:3171 mm/slub.c:4036) kmemcacheallocbulk (mm/slub.c:? mm/slub.c:4495 mm/slub.c:4586 mm/slub.c:4635) napibuildskb (net/core/skbuff.c:348 net/core/skbuff.c:527 net/core/skbuff.c:549)
All the other callers to doslabfree appear to be ok.
Add a kfencefree check in kmemcachefreebulk to avoid the crash.
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
Linux kernel (mm/slub.c)to a version that resolves this vulnerability.Patch 782f8906f805
Event History
Frequently Asked Questions
What is the severity of CVE-2024-44973?
CVE-2024-44973 is classified as having moderate severity due to its potential impact on memory management in the Linux kernel.
How do I fix CVE-2024-44973?
To fix CVE-2024-44973, users should update their Linux kernel to one of the patched versions including 5.10.223-1, 5.10.226-1, 6.1.119-1, 6.1.123-1, or 6.12.11-1.
Which versions of the Linux kernel are affected by CVE-2024-44973?
CVE-2024-44973 affects Linux kernel versions between 6.8 and 6.10.5, as well as 6.11-rc1 and 6.11-rc2.
What components are involved in CVE-2024-44973?
CVE-2024-44973 involves the memory management component of the Linux kernel specifically related to the handling of kfence objects.
Is there a publicly available patch for CVE-2024-44973?
Yes, there are public patches available in the latest updated versions of the Linux kernel to resolve CVE-2024-44973.