Skip to main content
← All vulnerabilities
CVE-2026-80881

ocfs2: fix buffer head management in ocfs2_read_blocks()

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 4.5, 4.10, 4.15, 4.20
None on Exploit-DB, Metasploit or GitHub

Summary

In the Linux kernel, the following vulnerability has been resolved: ocfs2: fix buffer head management in ocfs2_read_blocks() In ocfs2_read_blocks(), caller should't assume that buffer head returned by 'sb_getblk()' is exclusively owned and so 'put_bh()' always drops b_count from 1 to 0. If it is not so, buffer head remains on hold and likely to be returned by the next call to 'sb_getblk()' unchanged - that is, with BH_Uptodate bit set even if it has failed validation previously, thus allowing to insert that buffer head into OCFS2 metadata cache and submit it to upper layers. To avoid such a scenario, BH_Uptodate should be cleared immediately after 'validate()' callback has detected some data inconsistency.

Timeline

  1. CVE published

Affected versions

  • Linux Linux

    From 4.4.204 · fixed in 4.5; From 4.9.204 · fixed in 4.10; From 4.14.157 · fixed in 4.15; From 4.19.87 · fixed in 4.20

  • Linux Linux

    4.20

References 8

git.kernel.org