# CVE-2024-53049: slub/kunit: fix a WARNING due to unwrapped __kmalloc_cache_noprof

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 10% of CVEs (2026-12-01)
- Published: 2024-11-19T17:19:35.260Z
- Modified: 2026-06-17T08:08:08.470Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

slub/kunit: fix a WARNING due to unwrapped __kmalloc_cache_noprof

'modprobe slub_kunit' will have a warning as shown below. The root cause
is that __kmalloc_cache_noprof was directly used, which resulted in no
alloc_tag being allocated. This caused current->alloc_tag to be null,
leading to a warning in alloc_tag_add_check.

Let's add an alloc_hook layer to __kmalloc_cache_noprof specifically
within lib/slub_kunit.c, which is the only user of this internal slub
function outside kmalloc implementation itself.

[58162.947016] WARNING: CPU: 2 PID: 6210 at
./include/linux/alloc_tag.h:125 alloc_tagging_slab_alloc_hook+0x268/0x27c
[58162.957721] Call trace:
[58162.957919]  alloc_tagging_slab_alloc_hook+0x268/0x27c
[58162.958286]  __kmalloc_cache_noprof+0x14c/0x344
[58162.958615]  test_kmalloc_redzone_access+0x50/0x10c [slub_kunit]
[58162.959045]  kunit_try_run_case+0x74/0x184 [kunit]
[58162.959401]  kunit_generic_run_threadfn_adapter+0x2c/0x4c [kunit]
[58162.959841]  kthread+0x10c/0x118
[58162.960093]  ret_from_fork+0x10/0x20
[58162.960363] ---[ end trace 0000000000000000 ]---

(As written by CVE List.)

## Affected

- Linux Linux: from a0a44d9175b349df2462089140fb7f292100bd7c before 79aea7dfd98fbbf282d1408fc21849fc9a677768; from a0a44d9175b349df2462089140fb7f292100bd7c before 2b059d0d1e624adc6e69a754bc48057f8bf459dc; 6.11 (not affected: before 6.11; from 6.11.7 up to 6.11.*; from 6.12 up to *)
- linux linux_kernel: from 6.11 before 6.11.7; 6.12

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/79aea7dfd98fbbf282d1408fc21849fc9a677768> (patch)
- <https://git.kernel.org/stable/c/2b059d0d1e624adc6e69a754bc48057f8bf459dc> (patch)

## Sources

- CVE List: [CVE-2024-53049](https://www.cve.org/CVERecord?id=CVE-2024-53049), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2024-53049](https://nvd.nist.gov/vuln/detail/CVE-2024-53049), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-53049 · Whole record: https://cve.day/CVE-2024-53049.json · Rebuilt by cve.day 2026-11-25T22:58:48.784Z
