Allocated in mempool_alloc_slab+0x24/0x50 age=1 cpu=1 pid=869
kmem_cache_alloc+0x324/0x480 mempool_alloc_slab+0x24/0x50
mempool_alloc+0x6e/0x220 bio_alloc_bioset+0x1af/0x4d0
blkdev_direct_IO+0x164/0x8a0 blkdev_write_iter+0x309/0x440
aio_write+0x139/0x2f0 io_submit_one+0x5ca/0xb70
__do_sys_io_submit+0x86/0x270 __x64_sys_io_submit+0x22/0x30
do_syscall_64+0xb1/0x210 entry_SYSCALL_64_after_hwframe+0x6c/0x74 Freed in
mempool_free_slab+0x1f/0x30 age=1 cpu=1 pid=869 kmem_cache_free+0x28c/0x550
mempool_free_slab+0x1f/0x30 mempool_free+0x40/0x100 bio_free+0x59/0x80
bio_put+0xf0/0x220 free_r1bio+0x74/0xb0 raid1_make_request+0xadf/0x1150
md_handle_request+0xc7/0x3b0 md_submit_bio+0x76/0x130
__submit_bio+0xd8/0x1d0 submit_bio_noacct_nocheck+0x1eb/0x5c0
submit_bio_noacct+0x169/0xd40 submit_bio+0xee/0x1d0
blkdev_direct_IO+0x322/0x8a0 blkdev_write_iter+0x309/0x440
aio_write+0x139/0x2f0 Since that bios for underlying disks are not
allocated yet, fix this problem by using mempool_free() directly to free
the r1_bio.
OS | Version | Architecture | Package | Version | Filename |
---|---|---|---|---|---|
ubuntu | 18.04 | noarch | linux | < any | UNKNOWN |
ubuntu | 20.04 | noarch | linux | < any | UNKNOWN |
ubuntu | 22.04 | noarch | linux | < any | UNKNOWN |
ubuntu | 23.10 | noarch | linux | < any | UNKNOWN |
ubuntu | 24.04 | noarch | linux | < any | UNKNOWN |
ubuntu | 14.04 | noarch | linux | < any | UNKNOWN |
ubuntu | 16.04 | noarch | linux | < any | UNKNOWN |
ubuntu | 18.04 | noarch | linux-aws | < any | UNKNOWN |
ubuntu | 20.04 | noarch | linux-aws | < any | UNKNOWN |
ubuntu | 22.04 | noarch | linux-aws | < any | UNKNOWN |
git.kernel.org/linus/fcf3f7e2fc8a53a6140beee46ec782a4c88e4744 (6.9-rc4)
git.kernel.org/stable/c/3f28d49a328fe20926995d5fbdc92da665596268
git.kernel.org/stable/c/f423f41b7679c09abb26d2bd54be5cbef23c9446
git.kernel.org/stable/c/fcf3f7e2fc8a53a6140beee46ec782a4c88e4744
launchpad.net/bugs/cve/CVE-2024-35979
nvd.nist.gov/vuln/detail/CVE-2024-35979
security-tracker.debian.org/tracker/CVE-2024-35979
www.cve.org/CVERecord?id=CVE-2024-35979