xfs: save ailp before dropping the AIL lock in push callbacks
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 5.10.253, 5.15.203, 6.1.168, 6.6.131, 6.12.80, and 2 more
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
- Exploitation: none
- Automatable: no
- Technical impact: total
Summary
In the Linux kernel, the following vulnerability has been resolved: xfs: save ailp before dropping the AIL lock in push callbacks In xfs_inode_item_push() and xfs_qm_dquot_logitem_push(), the AIL lock is dropped to perform buffer IO. Once the cluster buffer no longer protects the log item from reclaim, the log item may be freed by background reclaim or the dquot shrinker. The subsequent spin_lock() call dereferences lip->li_ailp, which is a use-after-free. Fix this by saving the ailp pointer in a local variable while the AIL lock is held and the log item is guaranteed to be valid.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: total
- Record last updated
Affected versions
- Linux Linux
From 90c60e16401248a4900f3f9387f563d0178dcf34 · fixed in edd1637d4e3911ab6c760f553f2040fe72f61a13; From 90c60e16401248a4900f3f9387f563d0178dcf34 · fixed in 19437e4f7bb909afde832b39372aa2f3ce3cfd88; From 90c60e16401248a4900f3f9387f563d0178dcf34 · fixed in 6dbe17f19c290a72ce57d5abc70e1fad0c3e14e5; From 90c60e16401248a4900f3f9387f563d0178dcf34 · fixed in 75669e987137f49c99ca44406bf0200d1892dd16; From 90c60e16401248a4900f3f9387f563d0178dcf34 · fixed in d8fc60bbaf5aea1604bf9f4ed565da6a1ac7a87d; From 90c60e16401248a4900f3f9387f563d0178dcf34 · fixed in 50f5f056807b7bed74f4f307f2ca0ed92f3e556d; From 90c60e16401248a4900f3f9387f563d0178dcf34 · fixed in 4c7d50147316cf049462f327c4a3e9dc2b7f1dd0; From 90c60e16401248a4900f3f9387f563d0178dcf34 · fixed in 394d70b86fae9fe865e7e6d9540b7696f73aa9b6
- Linux Linux
5.9
- KernelLinux
From 5.9.0 · fixed in 5.10.253; From 5.11.0 · fixed in 5.15.203; From 5.16.0 · fixed in 6.1.168; From 6.2.0 · fixed in 6.6.131; From 6.7.0 · fixed in 6.12.80; From 6.13.0 · fixed in 6.18.21; From 6.19.0 · fixed in 6.19.11
References 8
git.kernel.org
- stable/c/edd1637d4e3911ab6c760f553f2040fe72f61a13
- stable/c/19437e4f7bb909afde832b39372aa2f3ce3cfd88
- stable/c/6dbe17f19c290a72ce57d5abc70e1fad0c3e14e5
- stable/c/75669e987137f49c99ca44406bf0200d1892dd16
- stable/c/d8fc60bbaf5aea1604bf9f4ed565da6a1ac7a87d
- stable/c/50f5f056807b7bed74f4f307f2ca0ed92f3e556d
- stable/c/4c7d50147316cf049462f327c4a3e9dc2b7f1dd0
- stable/c/394d70b86fae9fe865e7e6d9540b7696f73aa9b6