CVE-2024-44973

CVE-2024-44973

High · published September 4, 2024

CVSS v3.1
8.1
EPSS
0%
Percentile
37.1
In the wild
Unconfirmed
What it is

In the Linux kernel, the following vulnerability has been resolved:

mm, slub: do not call do_slab_free for kfence object

In 782f8906f805 the freeing of kfence objects was moved from deep

inside do_slab_free to the wrapper functions outside. This is a nice

change, but unfortunately it missed one spot in __kmem_cache_free_bulk.

This results in a crash like this:

BUG skbuff_head_cache (Tainted: G S B E ): Padding overwritten. 0xffff88907fea0f00-0xffff88907fea0fff @offset=3840

slab_err (mm/slub.c:1129)

free_to_partial_list (mm/slub.c:? mm/slub.c:4036)

slab_pad_check (mm/slub.c:864 mm/slub.c:1290)

check_slab (mm/slub.c:?)

free_to_partial_list (mm/slub.c:3171 mm/slub.c:4036)

kmem_cache_alloc_bulk (mm/slub.c:? mm/slub.c:4495 mm/slub.c:4586 mm/slub.c:4635)

napi_build_skb (net/core/skbuff.c:348 net/core/skbuff.c:527 net/core/skbuff.c:549)

All the other callers to do_slab_free appear to be ok.

Add a kfence_free check in __kmem_cache_free_bulk to avoid the crash.

The record
Technical detail
CVSS v3.1
8.1 · HIGH
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00439 · 37.1th percentile
Published
2024-09-04T23:15Z
Affected products (3)
ProductVersionsFixed in
linux/linux_kernel≥ 6.8, < 6.10.56.10.5
linux/linux_kernelall versions—
linux/linux_kernelall versions—
References (2)
EPSS history
Timeline
  • 04 SEP 19:00Z
    mm, slub: do not call do_slab_free for kfence object
    cvelistv5