CVE-2022-49995
Severity CVSS v4.0:
Pending analysis
Type:
CWE-416
Use After Free
Publication date:
18/06/2025
Last modified:
14/11/2025
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
writeback: avoid use-after-free after removing device<br />
<br />
When a disk is removed, bdi_unregister gets called to stop further<br />
writeback and wait for associated delayed work to complete. However,<br />
wb_inode_writeback_end() may schedule bandwidth estimation dwork after<br />
this has completed, which can result in the timer attempting to access the<br />
just freed bdi_writeback.<br />
<br />
Fix this by checking if the bdi_writeback is alive, similar to when<br />
scheduling writeback work.<br />
<br />
Since this requires wb->work_lock, and wb_inode_writeback_end() may get<br />
called from interrupt, switch wb->work_lock to an irqsafe lock.
Impact
Base Score 3.x
7.80
Severity 3.x
HIGH
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 5.15 (including) | 5.15.64 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 5.16 (including) | 5.19.6 (excluding) |
| cpe:2.3:o:linux:linux_kernel:6.0:rc1:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.0:rc2:*:*:*:*:*:* |
To consult the complete list of CPE names with products and versions, see this page



