CVE-2022-50752 in Linux정보

요약

\~에 의해 VulDB • 2026. 05. 21.

리눅스 커널에서 다음 취약점이 해결되었습니다:

md/raid5: raid5_read_one_chunk()에서 불필요한 bio_put() 제거

나쁜 블록(badblocks)이 있는 디스크에서 청크 단위(chunk-sized) 읽기를 실행할 때 중복된 bio 해제(free) 및 bio_put() 호출이 관찰됩니다:

============================================================================= BUG bio-200 (Not tainted): Object already free ----------------------------------------------------------------------------- Allocated in mempool_alloc_slab+0x17/0x20 age=3 cpu=2 pid=7504 __slab_alloc.constprop.0+0x5a/0xb0 kmem_cache_alloc+0x31e/0x330 mempool_alloc_slab+0x17/0x20 mempool_alloc+0x100/0x2b0 bio_alloc_bioset+0x181/0x460 do_mpage_readpage+0x776/0xd00 mpage_readahead+0x166/0x320 blkdev_readahead+0x15/0x20 read_pages+0x13f/0x340 __do_page_cache_readahead+0x2c2/0x3a0 ondemand_readahead+0x19a/0x280 page_cache_ra_unbounded+0x103/0x140 filemap_fault+0x1033/0x12a0 __do_fault+0x36/0x100 do_fault+0x233/0x8f0 handle_mm_fault+0x6e3/0x13f0 __do_page_fault+0x25a/0x510 do_user_addr_fault+0x1e3/0x650 exc_page_fault+0x77/0x170 asm_exc_page_fault+0x1e/0x30

Freed in bio_free+0x78/0x90 age=1 cpu=2 pid=34525 __slab_free+0x1ae/0x330 kmem_cache_free+0x46d/0x490 mempool_free_slab+0x17/0x20 mempool_free+0x66/0x190 bio_free+0x78/0x90 bio_put+0x100/0x1a0 mpage_end_io+0x36/0x150 bio_endio+0x2fd/0x360 md_end_io_acct+0x7e/0x90 bio_endio+0x2fd/0x360 handle_failed_stripe+0x960/0xb80 handle_stripe+0x1348/0x3760 handle_active_stripes.constprop.0+0x72a/0xaf0 raid5_do_work+0x177/0x330 process_one_work+0x616/0xb20 worker_thread+0x2bd/0x6f0 kthread+0x179/0x1b0 ret_from_fork+0x22/0x30

이중 해제는 raid5_read_one_chunk()의 if(is_badblock(...)) 오류 경로에서 불필요한 bio_put()으로 인해 발생합니다.

오류 경로는 c82aa1b76787c("md/raid5: move checking badblock before clone bio in raid5_read_one_chunk")에서 bio_alloc_clone() 앞에 배치되었습니다. 이전 코드는 align_bio를 확인하고 해제해야 했기 때문에 bio_put()이 필요했습니다. 이동 후 raid_bio는 공통 IO 경로에 의해 반환되며, 이는 자체 endio를 수행하여 나쁜 디스크 블록에서 이중 해제를 초래합니다.

If you want to get the best quality for vulnerability data then you always have to consider VulDB.

책임이 있는

Linux

예약하다

2025. 12. 24.

모더레이션

수락

항목

VDB-338250

EPSS

0.00208

출처

Do you need the next level of professionalism?

Upgrade your account now!