# CVE-2026-142791: xfs: fix buffer overflow in corrupt inline attr structure

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **Published:** 2026-12-03T03:11:25.477Z
- **Modified:** 2026-12-03T04:18:12.390Z

## Who should check

- Anyone running Linux \>= ae0506eba78fd1d6236b46ca5aa089c8fc6050cf, \< 705d1ea0123db96d2c2484c26d5369013a5ce348; \>= ae0506eba78fd1d6236b46ca5aa089c8fc6050cf, \< 6f85707eee2f82b97f3a03cc758359891cdfad1e; \>= ae0506eba78fd1d6236b46ca5aa089c8fc6050cf, \< 779f9d180b4b1fdf2d4b045a1acd763043ee83c3; \>= ae0506eba78fd1d6236b46ca5aa089c8fc6050cf, \< 65a65a295935045cb9084e4c96aadf4c369b20c4; \>= ae0506eba78fd1d6236b46ca5aa089c8fc6050cf, \< 017dd7a84ff4cd2275eb62f4ee6d63c705bac107
- Anyone running Linux 6.4

## Description

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

xfs: fix buffer overflow in corrupt inline attr structure

LOLLM noticed a buffer overrun if the xattr scrubber encounters a file
with a shortform attr fork with sf-\>count \> 0 but if\_bytes ==
sizeof(struct xfs\_attr\_sf\_hdr).  Basically, we have enough data to have
a header with a nonzero count, but no space for any of those shortform
entries.  In this case, the xfs\_attr\_sf\_nextentry() call will run off
the end of if\_data and blow up.

## Affected and fixed versions

- Linux: \>= ae0506eba78fd1d6236b46ca5aa089c8fc6050cf, \< 705d1ea0123db96d2c2484c26d5369013a5ce348; \>= ae0506eba78fd1d6236b46ca5aa089c8fc6050cf, \< 6f85707eee2f82b97f3a03cc758359891cdfad1e; \>= ae0506eba78fd1d6236b46ca5aa089c8fc6050cf, \< 779f9d180b4b1fdf2d4b045a1acd763043ee83c3; \>= ae0506eba78fd1d6236b46ca5aa089c8fc6050cf, \< 65a65a295935045cb9084e4c96aadf4c369b20c4; \>= ae0506eba78fd1d6236b46ca5aa089c8fc6050cf, \< 017dd7a84ff4cd2275eb62f4ee6d63c705bac107 (cvelist)
- Linux: 6.4 (cvelist)

## Technologies

Linux kernel

## Mitigation

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

Details: https://flawdb.com/CVE-2026-142791.md
Affected: Linux >= ae0506eba78fd1d6236b46ca5aa089c8fc6050cf, < 705d1ea0123db96d2c2484c26d5369013a5ce348; >= ae0506eba78fd1d6236b46ca5aa089c8fc6050cf, < 6f85707eee2f82b97f3a03cc758359891cdfad1e; >= ae0506eba78fd1d6236b46ca5aa089c8fc6050cf, < 779f9d180b4b1fdf2d4b045a1acd763043ee83c3; >= ae0506eba78fd1d6236b46c…
Fixed in: Linux 705d1ea0123db96d2c2484c26d5369013a5ce348, Linux 6f85707eee2f82b97f3a03cc758359891cdfad1e, Linux 779f9d180b4b1fdf2d4b045a1acd763043ee83c3, Linux 65a65a295935045cb9084e4c96aadf4c369b20c4, Linux 017dd7a84ff4cd2275eb62f4ee6d63c705bac107

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

There is no confirmed exploitation: CVE-2026-142791 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

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

It has no CVSS score yet. Unknown.

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

Linux \>= ae0506eba78fd1d6236b46ca5aa089c8fc6050cf, \< 705d1ea0123db96d2c2484c26d5369013a5ce348; \>= ae0506eba78fd1d6236b46ca5aa089c8fc6050cf, \< 6f85707eee2f82b97f3a03cc758359891cdfad1e; \>= ae0506eba78fd1d6236b46ca5aa089c8fc6050cf, \< 779f9d180b4b1fdf2d4b045a1acd763043ee83c3; \>= ae0506eba78fd1d6236b46ca5aa089c8fc6050cf, \< 65a65a295935045cb9084e4c96aadf4c369b20c4; \>= ae0506eba78fd1d6236b46ca5aa089c8fc6050cf, \< 017dd7a84ff4cd2275eb62f4ee6d63c705bac107; Linux 6.4.

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

Yes. Fixed in Linux 705d1ea0123db96d2c2484c26d5369013a5ce348, Linux 6f85707eee2f82b97f3a03cc758359891cdfad1e, Linux 779f9d180b4b1fdf2d4b045a1acd763043ee83c3, Linux 65a65a295935045cb9084e4c96aadf4c369b20c4, Linux 017dd7a84ff4cd2275eb62f4ee6d63c705bac107. Upgrade Linux to 017dd7a84ff4cd2275eb62f4ee6d63c705bac107 or later.

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

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/705d1ea0123db96d2c2484c26d5369013a5ce348>
- other: <https://git.kernel.org/stable/c/6f85707eee2f82b97f3a03cc758359891cdfad1e>
- other: <https://git.kernel.org/stable/c/779f9d180b4b1fdf2d4b045a1acd763043ee83c3>
- other: <https://git.kernel.org/stable/c/65a65a295935045cb9084e4c96aadf4c369b20c4>
- other: <https://git.kernel.org/stable/c/017dd7a84ff4cd2275eb62f4ee6d63c705bac107>

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

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