# CVE-2026-72162: ocfs2: fix UBSAN array-index-out-of-bounds in ocfs2\_sum\_rightmost\_rec

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **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.18% (percentile 4, 2026-11-26)
- **Published:** 2026-08-15T05:53:30.420Z
- **Modified:** 2026-10-30T13:19:47.767Z

## Who should check

- Anyone running Linux \>= dcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8, \< c88226315aec298894ec57e532f5e95f3b09e874; \>= dcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8, \< c286319746cef02bcce7384fda3a3f08989070d2; \>= dcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8, \< 720fb324cf0f5116318cae7f75cb393d118ffb67; \>= dcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8, \< 671889c553ea55e2da6a4f3b15f4c0fa40f2f0d1; \>= dcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8, \< 858aa4965ffa8c0d4bb5dd835ac4f1c9a1dcab85; \>= dcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8, \< 452a8467be8143747292218212671deeb186d2ae
- Anyone running Linux 2.6.22

## Description

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

ocfs2: fix UBSAN array-index-out-of-bounds in ocfs2\_sum\_rightmost\_rec

\[BUG\]
On-disk corruption setting l\_next\_free\_rec to 0 in an inode's embedded
extent list triggers a UBSAN panic on the next write to that file.

\[CAUSE\]
ocfs2\_sum\_rightmost\_rec() computes
i = le16\_to\_cpu(el-\>l\_next\_free\_rec) - 1
and accesses el-\>l\_recs\[i\] without validating i. When l\_next\_free\_rec
is 0, i becomes -1; when l\_next\_free\_rec exceeds l\_count, i falls
past the end of the array. Either case violates the
\_\_counted\_by\_le(l\_count) annotation on l\_recs\[\] and triggers UBSAN.

\[FIX\]
Validate the inode's embedded extent list when the inode is read, in
ocfs2\_validate\_inode\_block(): l\_count must be non-zero and no larger
than the inode block can hold, and l\_next\_free\_rec must not exceed
l\_count. A corrupt list is rejected at read time, before the b-tree
code can index l\_recs\[\] out of bounds.

## Affected and fixed versions

- Linux: \>= dcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8, \< c88226315aec298894ec57e532f5e95f3b09e874; \>= dcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8, \< c286319746cef02bcce7384fda3a3f08989070d2; \>= dcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8, \< 720fb324cf0f5116318cae7f75cb393d118ffb67; \>= dcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8, \< 671889c553ea55e2da6a4f3b15f4c0fa40f2f0d1; \>= dcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8, \< 858aa4965ffa8c0d4bb5dd835ac4f1c9a1dcab85; \>= dcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8, \< 452a8467be8143747292218212671deeb186d2ae (cvelist)
- Linux: 2.6.22 (cvelist)

## Mitigation

- Upgrade Linux to 452a8467be8143747292218212671deeb186d2ae 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-72162. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-72162.md
Affected: Linux >= dcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8, < c88226315aec298894ec57e532f5e95f3b09e874; >= dcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8, < c286319746cef02bcce7384fda3a3f08989070d2; >= dcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8, < 720fb324cf0f5116318cae7f75cb393d118ffb67; >= dcd0538ff4e854fa9d7f463…
Fixed in: Linux 720fb324cf0f5116318cae7f75cb393d118ffb67, Linux 671889c553ea55e2da6a4f3b15f4c0fa40f2f0d1, Linux 858aa4965ffa8c0d4bb5dd835ac4f1c9a1dcab85, Linux 452a8467be8143747292218212671deeb186d2ae

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-72162 being exploited?

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

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

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

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

Linux \>= dcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8, \< c88226315aec298894ec57e532f5e95f3b09e874; \>= dcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8, \< c286319746cef02bcce7384fda3a3f08989070d2; \>= dcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8, \< 720fb324cf0f5116318cae7f75cb393d118ffb67; \>= dcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8, \< 671889c553ea55e2da6a4f3b15f4c0fa40f2f0d1; \>= dcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8, \< 858aa4965ffa8c0d4bb5dd835ac4f1c9a1dcab85; \>= dcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8, \< 452a8467be8143747292218212671deeb186d2ae; Linux 2.6.22.

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

Yes. Fixed in Linux 720fb324cf0f5116318cae7f75cb393d118ffb67, Linux 671889c553ea55e2da6a4f3b15f4c0fa40f2f0d1, Linux 858aa4965ffa8c0d4bb5dd835ac4f1c9a1dcab85, Linux 452a8467be8143747292218212671deeb186d2ae. Upgrade Linux to 452a8467be8143747292218212671deeb186d2ae or later.

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

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/c88226315aec298894ec57e532f5e95f3b09e874>
- other: <https://git.kernel.org/stable/c/c286319746cef02bcce7384fda3a3f08989070d2>
- other: <https://git.kernel.org/stable/c/720fb324cf0f5116318cae7f75cb393d118ffb67>
- other: <https://git.kernel.org/stable/c/671889c553ea55e2da6a4f3b15f4c0fa40f2f0d1>
- other: <https://git.kernel.org/stable/c/858aa4965ffa8c0d4bb5dd835ac4f1c9a1dcab85>
- other: <https://git.kernel.org/stable/c/452a8467be8143747292218212671deeb186d2ae>

## 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-72162>

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