최신 CVE 목록

CVE-2026-142987

—

usb: gadget: f_mass_storage: take filesem in nofua store to fix backing-file UAF

설명(영어 원문)

In the Linux kernel, the following vulnerability has been resolved: usb: gadget: f_mass_storage: take filesem in nofua store to fix backing-file UAF fsg_store_nofua() syncs the LUN's backing file when switching from async to sync mode: if (!nofua && curlun->nofua) fsg_lun_fsync_sub(curlun); fsg_lun_fsync_sub() dereferences curlun->filp (vfs_fsync(filp)). Unlike every other store that touches the backing file -- fsg_store_ro() and fsg_store_cdrom() (down_read), fsg_store_file() (down_write) -- fsg_store_nofua() holds no filesem while doing so. A concurrent close of the backing file runs under down_write(filesem) and does fput(curlun->filp) in fsg_lun_close() (fsg_store_file() with an empty path, the SCSI START_STOP eject in do_start_stop(), or forced_eject), so it can free the file while fsg_store_nofua() is dereferencing it: BUG: KASAN: slab-use-after-free in vfs_fsync+0x20/0xe0 vfs_fsync+0x20/0xe0 fsg_lun_fsync_sub+0xa0/0xd0 fsg_store_nofua+0x138/0x160 configfs_write_iter+0x1a7/0x250 vfs_write+0x5df/0x940 Allocated by task 3459: fsg_store_file+0x150/0x1f0 configfs_write_iter+0x1a7/0x250 Freed by task 3459: __fput+0x456/0x6c0 __fput_deferred+0x10d/0x330 fsg_store_file+0x9e/0x1f0 configfs_write_iter+0x1a7/0x250 Hold filesem for read around the fsync in fsg_store_nofua() so the backing file cannot be closed underneath it. The lock is only needed when the fsync actually runs, so it is taken only in that branch. Reproduced on a mass_storage gadget over dummy_hcd by writing lun.N/nofua (1 then 0) from one task while another task rewrites and clears lun.N/file.

기본 정보

공개일
2026-12-03
최근 수정
2026-12-03
심각도
—

영향 받는 제품

  • Linux Linux — 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 – < 94bc557fc0c78e7c148974baf0be33db9b3cbc93, 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 – < 02d11b2e20bbd98b6496458ebc7522f6d429dc36, 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 – < 2ef64b32ceb561e85d572ed2b7aaa45d36087f26, 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 – < 5c0e66058314fc994feef9e1a1879146ea3698b6, 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 – < efe2605be71f6f22dcdf08fa9a0b1669e41a68d2, 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 – < 450fa94d7ae9fc91c3df525f5d1322bf8fecf7b2, < 5.10.276, < 5.15.227, < 6.12.120, < 6.18.66
  • Linux Linux — 버전 정보 없음

참고 링크

원본 기록

데이터 출처

CVE® 데이터 © The MITRE Corporation · CVE 데이터는 MITRE의 CVE 이용 약관에 따른 저작권 허락으로 싣습니다. 약관이 함께 싣도록 정한 허락 문구(원문)는 다음과 같습니다. CVE 이용 약관

MITRE hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute Common Vulnerabilities and Exposures (CVE™). Any copy you make for such purposes is authorized provided that you reproduce MITRE's copyright designation and this license in any such copy.

출처: CISA Known Exploited Vulnerabilities Catalog

EPSS by FIRST.org

출처: 한국인터넷진흥원(KISA) 보안취약점 정보포털

각 기관은 이 서비스를 보증하거나 추천하지 않습니다. 정보는 원본 그대로가 아닐 수 있으니 중요한 판단은 원본에서 확인해 주세요.