CVE-2025-21811

nilfs2: protect access to buffers with no active references

State
Published
Severity
7.8 High
Published
Feb 27, 2025
Updated
Aug 5, 2026
Reserved
Dec 29, 2024

Read the record on cve.org

Description

In the Linux kernel, the following vulnerability has been resolved:

nilfs2: protect access to buffers with no active references

nilfs_lookup_dirty_data_buffers(), which iterates through the buffers attached to dirty data folios/pages, accesses the attached buffers without locking the folios/pages.

For data cache, nilfs_clear_folio_dirty() may be called asynchronously when the file system degenerates to read only, so nilfs_lookup_dirty_data_buffers() still has the potential to cause use after free issues when buffers lose the protection of their dirty state midway due to this asynchronous clearing and are unintentionally freed by try_to_free_buffers().

Eliminate this race issue by adjusting the lock section in this function.

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HCISA-ADP

Weaknesses

Affected Products

ProductVersions
LinuxLinux
  • 8c26c4e2694a163d525976e804d81cd955bbb40c to before e1fc4a90a90ea8514246c45435662531975937d9Affected
  • 8c26c4e2694a163d525976e804d81cd955bbb40c to before 72cf688d0ce7e642b12ddc9b2a42524737ec1b4aAffected
  • 8c26c4e2694a163d525976e804d81cd955bbb40c to before d8ff250e085a4c4cdda4ad1cdd234ed110393143Affected
  • 8c26c4e2694a163d525976e804d81cd955bbb40c to before 58c27fa7a610b6e8d44e6220e7dbddfbaccaf439Affected
  • 8c26c4e2694a163d525976e804d81cd955bbb40c to before 8e1b9201c9a24638cf09c6e1c9f224157328010bAffected
  • 8c26c4e2694a163d525976e804d81cd955bbb40c to before 4b08d23d7d1917bef4fbee8ad81372f49b006656Affected
  • 8c26c4e2694a163d525976e804d81cd955bbb40c to before c437dfac9f7a5a46ac2a5e6d6acd3059e9f68188Affected
  • 8c26c4e2694a163d525976e804d81cd955bbb40c to before 367a9bffabe08c04f6d725032cce3d891b2b9e1aAffected
LinuxLinux
  • 3.10Affected
  • before 3.10Not affected
  • 5.4.291 through 5.4.*Not affected
  • 5.10.235 through 5.10.*Not affected
  • 5.15.179 through 5.15.*Not affected
  • 6.1.129 through 6.1.*Not affected
  • 6.6.76 through 6.6.*Not affected
  • 6.12.13 through 6.12.*Not affected
  • 6.13.2 through 6.13.*Not affected
  • 6.14 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.