Skip to content
DayZeroHub
High Not yet writtenCVSS 7.8CVE-2026-99429

CVE-2026-99429: ocfs2: pin refcount trees before dropping the lookup lock

Linux Linux

Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.

Summary

CVE-2026-99429: high-severity vulnerability (CVSS 7.8) in Linux Linux.

What happened

Original description from the source: In the Linux kernel, the following vulnerability has been resolved: ocfs2: pin refcount trees before dropping the lookup lock A refcount tree returned to ocfs2_lock_refcount_tree() must stay alive until that caller releases its operation reference. However, ocfs2_get_refcount_tree() returns the cached pointer after dropping osb_lock, and the caller only takes its kref afterwards. The registry reference does not protect this gap from concurrent removal. This can happen when another node frees a refcount root and reuses its block with a different generation while this mount retains the old cached tree. Two local operations on different inodes sharing the new root, such as data CoW and an external xattr update, can then look up the same stale tree. Their inode locks are independent, and both the REFCOUNT DLM lock and rf_sem are acquired after the first operation reference. The following ordering is possible, with no other operation references: Data CoW Xattr update -------- ------------ Look up the old tree under osb_lock, then drop osb_lock Look up the same tree and take a kref Acquire the tree locks and read the new on-disk generation Erase the old tree under osb_lock Unlock and drop the operation kref Drop the registry kref, freeing tree Take a kref through the freed tree pointer The final kref_get() accesses freed rf_getcnt storage, and subsequent accesses in ocfs2_lock_refcount_tree() also use the freed allocation. Take the operation reference in ocfs2_get_refcount_tree() before releasing osb_lock, including when an insertion loses to another lookup. Removal must acquire the same lock, so it cannot drop the registry reference before the lookup has pinned the tree. Keep…

Why it matters

High severity, CVSS 7.8.

Affected products and versions

Linux Linux >= 374a263e790c4de85844283c098810a92985f623, < 86b7a6e80104f714cd354d36c4c8a124ea8e05b1; Linux Linux >= 374a263e790c4de85844283c098810a92985f623, < 4e824bf75ce260951433bb22d33f1179d5a3d2fd; Linux Linux >= 374a263e790c4de85844283c098810a92985f623, < c873a7a67cd8d8a26f4ce4a830deb3748e7439d9; Linux Linux >= 374a263e790c4de85844283c098810a92985f623, < 4720f762623680e36d2241cf4d113cf0318c0cf9; Linux Linux >= 374a263e790c4de85844283c098810a92985f623, < ce7b46556af15642a1e9f8d0c596022dd7cfb4a7; Linux Linux >= 374a263e790c4de85844283c098810a92985f623, < 7ff4f020f7b03fddd529735f0b61ac0a8dd92c9e; Linux Linux >= 374a263e790c4de85844283c098810a92985f623, < 2d9e864c234469dc7f56ea974f8269d251441e6a; Linux Linux >= 374a263e790c4de85844283c098810a92985f623, < 8c714a074074af7ae59233c1fa6ef9d7aa710462; Linux Linux 2.6.32; Linux Linux < 2.6.32; Linux Linux 5.10.275 (fixed in 5.10.275); Linux Linux 5.15.226 (fixed in 5.15.226)

ProductVersionsFixed in
Linux Linux>= 374a263e790c4de85844283c098810a92985f623, < 86b7a6e80104f714cd354d36c4c8a124ea8e05b1—
Linux Linux>= 374a263e790c4de85844283c098810a92985f623, < 4e824bf75ce260951433bb22d33f1179d5a3d2fd—
Linux Linux>= 374a263e790c4de85844283c098810a92985f623, < c873a7a67cd8d8a26f4ce4a830deb3748e7439d9—
Linux Linux>= 374a263e790c4de85844283c098810a92985f623, < 4720f762623680e36d2241cf4d113cf0318c0cf9—
Linux Linux>= 374a263e790c4de85844283c098810a92985f623, < ce7b46556af15642a1e9f8d0c596022dd7cfb4a7—
Linux Linux>= 374a263e790c4de85844283c098810a92985f623, < 7ff4f020f7b03fddd529735f0b61ac0a8dd92c9e—
Linux Linux>= 374a263e790c4de85844283c098810a92985f623, < 2d9e864c234469dc7f56ea974f8269d251441e6a—
Linux Linux>= 374a263e790c4de85844283c098810a92985f623, < 8c714a074074af7ae59233c1fa6ef9d7aa710462—
Linux Linux2.6.32—
Linux Linux< 2.6.32—
Linux Linux5.10.2755.10.275
Linux Linux5.15.2265.15.226
Linux Linux6.1.1936.1.193
Linux Linux6.6.1636.6.163
Linux Linux6.12.1176.12.117
Linux Linux6.18.616.18.61
Linux Linux7.3.27.3.2
Linux Linux7.4-rc17.4-rc1

Action recommended by the source

Upgrade to a fixed version: 5.10.275, 5.15.226, 6.1.193, 6.12.117, 6.18.61, 6.6.163, 7.3.2, 7.4-rc1.

Fixed in: 5.10.275, 5.15.226, 6.1.193, 6.12.117, 6.18.61, 6.6.163, 7.3.2, 7.4-rc1

Information taken from the source or the vendor. Verify it at the original link before acting.

Sources and references

Relevant change history

  1. Published

    Preliminary advisory published.