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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.17% (percentile 4, 2026-11-28)
- **Published:** 2026-11-19T14:40:51.812Z
- **Modified:** 2026-11-23T08:17:46.680Z

## Who should check

- Anyone running Linux \>= 374a263e790c4de85844283c098810a92985f623, \< 86b7a6e80104f714cd354d36c4c8a124ea8e05b1; \>= 374a263e790c4de85844283c098810a92985f623, \< 4e824bf75ce260951433bb22d33f1179d5a3d2fd; \>= 374a263e790c4de85844283c098810a92985f623, \< c873a7a67cd8d8a26f4ce4a830deb3748e7439d9; \>= 374a263e790c4de85844283c098810a92985f623, \< 4720f762623680e36d2241cf4d113cf0318c0cf9; \>= 374a263e790c4de85844283c098810a92985f623, \< ce7b46556af15642a1e9f8d0c596022dd7cfb4a7; \>= 374a263e790c4de85844283c098810a92985f623, \< 7ff4f020f7b03fddd529735f0b61ac0a8dd92c9e; \>= 374a263e790c4de85844283c098810a92985f623, \< 2d9e864c234469dc7f56ea974f8269d251441e6a; \>= 374a263e790c4de85844283c098810a92985f623, \< 8c714a074074af7ae59233c1fa6ef9d7aa710462
- Anyone running Linux 2.6.32

## Description

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 the existing
unlock and error path puts. The two callers that already hold the
refcount tree lock keep their borrowed lookup behavior and do not
acquire an extra reference.

KASAN report as below:

    BUG: KASAN: slab-use-after-free in ocfs2\_lock\_refcount\_tree+0x94a/0x9b0
    Read of size 4 at addr ffff888117212820 by task python3/497

\[Kernel and hardware identification omitted.\]

    Call Trace:
     \<TASK\>
     dump\_stack\_lvl+0x93/0xd0
     print\_report+0xce/0x630
     ? ocfs2\_lock\_refcount\_tree+0x94a/0x9b0
     ? srso\_alias\_return\_thunk+0x5/0xfbef5
     ? \_\_virt\_addr\_valid+0x20e/0x420
     ? ocfs2\_lock\_refcount\_tree+0x94a/0x9b0
     kasan\_report+0xe0/0x110
     ? ocfs2\_lock\_refcount\_tree+0x94a/0x9b0
     ocfs2\_lock\_refcount\_tree+0x94a/0x9b0
     ? \_\_pfx\_ocfs2\_lock\_refcount\_tree+0x10/0x10
     ? srso\_alias\_return\_thunk+0x5/0xfbef5
     ? ocfs2\_refcount\_cow+0x3b6/0xd90
     ? srso\_alias\_return\_thunk+0x5/0xfbef5
     ? \_\_kmalloc\_cache\_noprof+0x28d/0x610
     ? ocfs2\_refcount\_cow+0x3b6/0xd90
     ocfs2\_refcount\_cow+0x410/0xd90
     ? \_\_pfx\_ocfs2\_refcount\_cow+0x10/0x10
     ? \_\_pfx\_\_\_might\_resched+0x10/0x10
     ? down\_write+0x11a/0x1f0
     ? \_\_pfx\_down\_write+0x10/0x10
     ? ocfs2\_inode\_unlock+0x1a9/0x260
     ? \_\_pfx\_ocfs2\_inode\_unlock+0x10/0x10
     ? ocfs2\_file\_write\_iter+0x1413/0x1d30
     ocfs2\_file\_write\_iter+0x157b/0x1d30
     ? \_\_pfx\_ocfs2\_file\_write\_iter+0x10/0x10
     ? lock\_acquire+0x190/0x300
     ? \_\_x64\_sys\_pwrite64+0x1b7/0x220
     ? \_\_pfx\_\_\_might\_resched+0x10/0x10
     ? srso\_alias\_return\_thunk+0x5/0xfbef5
     ? security\_file\_permission+0x26/0x80
     ? srso\_alias\_return\_thunk+0x5/0xfbef5
     ? lock\_is\_held\_type+0x8f/0x100
     vfs\_write+0x639/0x1010
     ? \_\_pfx\_ocfs2\_file\_write\_iter+0x10/0x10
     ? lock\_vma\_under\_rcu+0x154/0x4a0
     ? \_\_pfx\_vfs\_write+0x10/0x10
     ? lock\_release+0x121/0x290
     ? srso\_alias\_return\_thunk+0x5/0xfbef5
     \_\_x64\_sys\_pwrite64+0x1b7/0x220
     ? \_\_pfx\_\_\_x64\_sys\_pwrite64+0x10/0x10
     ? irqentry\_exit+0xbe/0x820
---truncated---

## Affected and fixed versions

- Linux: \>= 374a263e790c4de85844283c098810a92985f623, \< 86b7a6e80104f714cd354d36c4c8a124ea8e05b1; \>= 374a263e790c4de85844283c098810a92985f623, \< 4e824bf75ce260951433bb22d33f1179d5a3d2fd; \>= 374a263e790c4de85844283c098810a92985f623, \< c873a7a67cd8d8a26f4ce4a830deb3748e7439d9; \>= 374a263e790c4de85844283c098810a92985f623, \< 4720f762623680e36d2241cf4d113cf0318c0cf9; \>= 374a263e790c4de85844283c098810a92985f623, \< ce7b46556af15642a1e9f8d0c596022dd7cfb4a7; \>= 374a263e790c4de85844283c098810a92985f623, \< 7ff4f020f7b03fddd529735f0b61ac0a8dd92c9e; \>= 374a263e790c4de85844283c098810a92985f623, \< 2d9e864c234469dc7f56ea974f8269d251441e6a; \>= 374a263e790c4de85844283c098810a92985f623, \< 8c714a074074af7ae59233c1fa6ef9d7aa710462 (cvelist)
- Linux: 2.6.32 (cvelist)

## Technologies

Linux kernel

## Mitigation

- Upgrade Linux to 8c714a074074af7ae59233c1fa6ef9d7aa710462 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-99429. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-99429.md
Affected: Linux >= 374a263e790c4de85844283c098810a92985f623, < 86b7a6e80104f714cd354d36c4c8a124ea8e05b1; >= 374a263e790c4de85844283c098810a92985f623, < 4e824bf75ce260951433bb22d33f1179d5a3d2fd; >= 374a263e790c4de85844283c098810a92985f623, < c873a7a67cd8d8a26f4ce4a830deb3748e7439d9; >= 374a263e790c4de85844283…
Fixed in: Linux 86b7a6e80104f714cd354d36c4c8a124ea8e05b1, Linux 4e824bf75ce260951433bb22d33f1179d5a3d2fd, Linux 4720f762623680e36d2241cf4d113cf0318c0cf9, Linux 7ff4f020f7b03fddd529735f0b61ac0a8dd92c9e, Linux 2d9e864c234469dc7f56ea974f8269d251441e6a, Linux 8c714a074074af7ae59233c1fa6ef9d7aa710462

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-99429 being exploited?

There is no confirmed exploitation: CVE-2026-99429 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.17% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-99429?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-99429?

Linux \>= 374a263e790c4de85844283c098810a92985f623, \< 86b7a6e80104f714cd354d36c4c8a124ea8e05b1; \>= 374a263e790c4de85844283c098810a92985f623, \< 4e824bf75ce260951433bb22d33f1179d5a3d2fd; \>= 374a263e790c4de85844283c098810a92985f623, \< c873a7a67cd8d8a26f4ce4a830deb3748e7439d9; \>= 374a263e790c4de85844283c098810a92985f623, \< 4720f762623680e36d2241cf4d113cf0318c0cf9; \>= 374a263e790c4de85844283c098810a92985f623, \< ce7b46556af15642a1e9f8d0c596022dd7cfb4a7; \>= 374a263e790c4de85844283c098810a92985f623, \< 7ff4f020f7b03fddd529735f0b61ac0a8dd92c9e; \>= 374a263e790c4de85844283c098810a92985f623, \< 2d9e864c234469dc7f56ea974f8269d251441e6a; \>= 374a263e790c4de85844283c098810a92985f623, \< 8c714a074074af7ae59233c1fa6ef9d7aa710462; Linux 2.6.32.

### Is there a fix for CVE-2026-99429?

Yes. Fixed in Linux 86b7a6e80104f714cd354d36c4c8a124ea8e05b1, Linux 4e824bf75ce260951433bb22d33f1179d5a3d2fd, Linux 4720f762623680e36d2241cf4d113cf0318c0cf9, Linux 7ff4f020f7b03fddd529735f0b61ac0a8dd92c9e, Linux 2d9e864c234469dc7f56ea974f8269d251441e6a, Linux 8c714a074074af7ae59233c1fa6ef9d7aa710462. Upgrade Linux to 8c714a074074af7ae59233c1fa6ef9d7aa710462 or later.

### How do I check if I'm affected by CVE-2026-99429?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/86b7a6e80104f714cd354d36c4c8a124ea8e05b1>
- other: <https://git.kernel.org/stable/c/4e824bf75ce260951433bb22d33f1179d5a3d2fd>
- other: <https://git.kernel.org/stable/c/c873a7a67cd8d8a26f4ce4a830deb3748e7439d9>
- other: <https://git.kernel.org/stable/c/4720f762623680e36d2241cf4d113cf0318c0cf9>
- other: <https://git.kernel.org/stable/c/ce7b46556af15642a1e9f8d0c596022dd7cfb4a7>
- other: <https://git.kernel.org/stable/c/7ff4f020f7b03fddd529735f0b61ac0a8dd92c9e>
- other: <https://git.kernel.org/stable/c/2d9e864c234469dc7f56ea974f8269d251441e6a>
- other: <https://git.kernel.org/stable/c/8c714a074074af7ae59233c1fa6ef9d7aa710462>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-99429>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

HTML: <https://flawdb.com/CVE-2026-99429> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-99429>
