{"id":"CVE-2024-53049","published":"2024-11-19T17:19:35Z","modified":"2026-05-11T20:49:49Z","title":"slub/kunit: fix a WARNING due to unwrapped __kmalloc_cache_noprof","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nslub/kunit: fix a WARNING due to unwrapped __kmalloc_cache_noprof\n\n'modprobe slub_kunit' will have a warning as shown below. The root cause\nis that __kmalloc_cache_noprof was directly used, which resulted in no\nalloc_tag being allocated. This caused current->alloc_tag to be null,\nleading to a warning in alloc_tag_add_check.\n\nLet's add an alloc_hook layer to __kmalloc_cache_noprof specifically\nwithin lib/slub_kunit.c, which is the only user of this internal slub\nfunction outside kmalloc implementation itself.\n\n[58162.947016] WARNING: CPU: 2 PID: 6210 at\n./include/linux/alloc_tag.h:125 alloc_tagging_slab_alloc_hook+0x268/0x27c\n[58162.957721] Call trace:\n[58162.957919]  alloc_tagging_slab_alloc_hook+0x268/0x27c\n[58162.958286]  __kmalloc_cache_noprof+0x14c/0x344\n[58162.958615]  test_kmalloc_redzone_access+0x50/0x10c [slub_kunit]\n[58162.959045]  kunit_try_run_case+0x74/0x184 [kunit]\n[58162.959401]  kunit_generic_run_threadfn_adapter+0x2c/0x4c [kunit]\n[58162.959841]  kthread+0x10c/0x118\n[58162.960093]  ret_from_fork+0x10/0x20\n[58162.960363] ---[ end trace 0000000000000000 ]---","provenance":"source","from":"CVE.org"},"cvss":{"score":5.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00202,"percentile":0.10306,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/79aea7dfd98fbbf282d1408fc21849fc9a677768","tags":[]},{"url":"https://git.kernel.org/stable/c/2b059d0d1e624adc6e69a754bc48057f8bf459dc","tags":[]}],"priority":{"score":5.9,"factors":[{"name":"EPSS percentile","points":2.06},{"name":"CVSS severity","points":3.85}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= a0a44d9175b349df2462089140fb7f292100bd7c, < 79aea7dfd98fbbf282d1408fc21849fc9a677768",">= a0a44d9175b349df2462089140fb7f292100bd7c, < 2b059d0d1e624adc6e69a754bc48057f8bf459dc"]},{"vendor":"Linux","product":"Linux","versions":["6.11"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-10-01T20:13:19.715073Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-50465","exploited":false,"provenance":"source"}}