# CVE-2025-37738: ext4: ignore xattrs past end

> 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.31% (percentile 17, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2025-05-01T12:55:47.981Z
- **Modified:** 2026-10-15T22:18:16.920Z

## Who should check

- Anyone running Linux \>= e50e5129f384ae282adebfb561189cdb19b81cee, \< 6aff941cb0f7d0c897c3698ad2e30672709135e3; \>= e50e5129f384ae282adebfb561189cdb19b81cee, \< 76c365fa7e2a8bb85f0190cdb4b8cdc99b2fdce3; \>= e50e5129f384ae282adebfb561189cdb19b81cee, \< f737418b6de31c962c7192777ee4018906975383; \>= e50e5129f384ae282adebfb561189cdb19b81cee, \< cf9291a3449b04688b81e32621e88de8f4314b54; \>= e50e5129f384ae282adebfb561189cdb19b81cee, \< 362a90cecd36e8a5c415966d0b75b04a0270e4dd; \>= e50e5129f384ae282adebfb561189cdb19b81cee, \< eb59cc31b6ea076021d14b04e7faab1636b87d0e; \>= e50e5129f384ae282adebfb561189cdb19b81cee, \< 3bc6317033f365ce578eb6039445fb66162722fd; \>= e50e5129f384ae282adebfb561189cdb19b81cee, \< 836e625b03a666cf93ff5be328c8cb30336db872; \>= e50e5129f384ae282adebfb561189cdb19b81cee, \< c8e008b60492cf6fd31ef127aea6d02fd3d314cd
- Anyone running Linux 4.13

## Description

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

ext4: ignore xattrs past end

Once inside 'ext4\_xattr\_inode\_dec\_ref\_all' we should
ignore xattrs entries past the 'end' entry.

This fixes the following KASAN reported issue:

==================================================================
BUG: KASAN: slab-use-after-free in ext4\_xattr\_inode\_dec\_ref\_all+0xb8c/0xe90
Read of size 4 at addr ffff888012c120c4 by task repro/2065

CPU: 1 UID: 0 PID: 2065 Comm: repro Not tainted 6.13.0-rc2+ \#11
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014
Call Trace:
 \<TASK\>
 dump\_stack\_lvl+0x1fd/0x300
 ? tcp\_gro\_dev\_warn+0x260/0x260
 ? \_printk+0xc0/0x100
 ? read\_lock\_is\_recursive+0x10/0x10
 ? irq\_work\_queue+0x72/0xf0
 ? \_\_virt\_addr\_valid+0x17b/0x4b0
 print\_address\_description+0x78/0x390
 print\_report+0x107/0x1f0
 ? \_\_virt\_addr\_valid+0x17b/0x4b0
 ? \_\_virt\_addr\_valid+0x3ff/0x4b0
 ? \_\_phys\_addr+0xb5/0x160
 ? ext4\_xattr\_inode\_dec\_ref\_all+0xb8c/0xe90
 kasan\_report+0xcc/0x100
 ? ext4\_xattr\_inode\_dec\_ref\_all+0xb8c/0xe90
 ext4\_xattr\_inode\_dec\_ref\_all+0xb8c/0xe90
 ? ext4\_xattr\_delete\_inode+0xd30/0xd30
 ? \_\_ext4\_journal\_ensure\_credits+0x5f0/0x5f0
 ? \_\_ext4\_journal\_ensure\_credits+0x2b/0x5f0
 ? inode\_update\_timestamps+0x410/0x410
 ext4\_xattr\_delete\_inode+0xb64/0xd30
 ? ext4\_truncate+0xb70/0xdc0
 ? ext4\_expand\_extra\_isize\_ea+0x1d20/0x1d20
 ? \_\_ext4\_mark\_inode\_dirty+0x670/0x670
 ? ext4\_journal\_check\_start+0x16f/0x240
 ? ext4\_inode\_is\_fast\_symlink+0x2f2/0x3a0
 ext4\_evict\_inode+0xc8c/0xff0
 ? ext4\_inode\_is\_fast\_symlink+0x3a0/0x3a0
 ? do\_raw\_spin\_unlock+0x53/0x8a0
 ? ext4\_inode\_is\_fast\_symlink+0x3a0/0x3a0
 evict+0x4ac/0x950
 ? proc\_nr\_inodes+0x310/0x310
 ? trace\_ext4\_drop\_inode+0xa2/0x220
 ? \_raw\_spin\_unlock+0x1a/0x30
 ? iput+0x4cb/0x7e0
 do\_unlinkat+0x495/0x7c0
 ? try\_break\_deleg+0x120/0x120
 ? 0xffffffff81000000
 ? \_\_check\_object\_size+0x15a/0x210
 ? strncpy\_from\_user+0x13e/0x250
 ? getname\_flags+0x1dc/0x530
 \_\_x64\_sys\_unlinkat+0xc8/0xf0
 do\_syscall\_64+0x65/0x110
 entry\_SYSCALL\_64\_after\_hwframe+0x67/0x6f
RIP: 0033:0x434ffd
Code: 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 f3 0f 1e fa 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 8
RSP: 002b:00007ffc50fa7b28 EFLAGS: 00000246 ORIG\_RAX: 0000000000000107
RAX: ffffffffffffffda RBX: 00007ffc50fa7e18 RCX: 0000000000434ffd
RDX: 0000000000000000 RSI: 0000000020000240 RDI: 0000000000000005
RBP: 00007ffc50fa7be0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00007ffc50fa7e08 R14: 00000000004bbf30 R15: 0000000000000001
 \</TASK\>

The buggy address belongs to the object at ffff888012c12000
 which belongs to the cache filp of size 360
The buggy address is located 196 bytes inside of
 freed 360-byte region \[ffff888012c12000, ffff888012c12168)

The buggy address belongs to the physical page:
page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x12c12
head: order:1 mapcount:0 entire\_mapcount:0 nr\_pages\_mapped:0 pincount:0
flags: 0x40(head\|node=0\|zone=0)
page\_type: f5(slab)
raw: 0000000000000040 ffff888000ad7640 ffffea0000497a00 dead000000000004
raw: 0000000000000000 0000000000100010 00000001f5000000 0000000000000000
head: 0000000000000040 ffff888000ad7640 ffffea0000497a00 dead000000000004
head: 0000000000000000 0000000000100010 00000001f5000000 0000000000000000
head: 0000000000000001 ffffea00004b0481 ffffffffffffffff 0000000000000000
head: 0000000000000002 0000000000000000 00000000ffffffff 0000000000000000
page dumped because: kasan: bad access detected

Memory state around the buggy address:
 ffff888012c11f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffff888012c12000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
\> ffff888012c12080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                                           ^
 ffff888012c12100: fb fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc
 ffff888012c12180: fc fc fc fc fc fc fc fc fc
---truncated---

## Affected and fixed versions

- Linux: \>= e50e5129f384ae282adebfb561189cdb19b81cee, \< 6aff941cb0f7d0c897c3698ad2e30672709135e3; \>= e50e5129f384ae282adebfb561189cdb19b81cee, \< 76c365fa7e2a8bb85f0190cdb4b8cdc99b2fdce3; \>= e50e5129f384ae282adebfb561189cdb19b81cee, \< f737418b6de31c962c7192777ee4018906975383; \>= e50e5129f384ae282adebfb561189cdb19b81cee, \< cf9291a3449b04688b81e32621e88de8f4314b54; \>= e50e5129f384ae282adebfb561189cdb19b81cee, \< 362a90cecd36e8a5c415966d0b75b04a0270e4dd; \>= e50e5129f384ae282adebfb561189cdb19b81cee, \< eb59cc31b6ea076021d14b04e7faab1636b87d0e; \>= e50e5129f384ae282adebfb561189cdb19b81cee, \< 3bc6317033f365ce578eb6039445fb66162722fd; \>= e50e5129f384ae282adebfb561189cdb19b81cee, \< 836e625b03a666cf93ff5be328c8cb30336db872; \>= e50e5129f384ae282adebfb561189cdb19b81cee, \< c8e008b60492cf6fd31ef127aea6d02fd3d314cd (cvelist)
- Linux: 4.13 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2025-37738.md
Affected: Linux >= e50e5129f384ae282adebfb561189cdb19b81cee, < 6aff941cb0f7d0c897c3698ad2e30672709135e3; >= e50e5129f384ae282adebfb561189cdb19b81cee, < 76c365fa7e2a8bb85f0190cdb4b8cdc99b2fdce3; >= e50e5129f384ae282adebfb561189cdb19b81cee, < f737418b6de31c962c7192777ee4018906975383; >= e50e5129f384ae282adebfb…
Fixed in: Linux 6aff941cb0f7d0c897c3698ad2e30672709135e3, Linux 76c365fa7e2a8bb85f0190cdb4b8cdc99b2fdce3, Linux 362a90cecd36e8a5c415966d0b75b04a0270e4dd, Linux 3bc6317033f365ce578eb6039445fb66162722fd, Linux 836e625b03a666cf93ff5be328c8cb30336db872

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-2025-37738 being exploited?

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

### How serious is CVE-2025-37738?

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

### Which versions are affected by CVE-2025-37738?

Linux \>= e50e5129f384ae282adebfb561189cdb19b81cee, \< 6aff941cb0f7d0c897c3698ad2e30672709135e3; \>= e50e5129f384ae282adebfb561189cdb19b81cee, \< 76c365fa7e2a8bb85f0190cdb4b8cdc99b2fdce3; \>= e50e5129f384ae282adebfb561189cdb19b81cee, \< f737418b6de31c962c7192777ee4018906975383; \>= e50e5129f384ae282adebfb561189cdb19b81cee, \< cf9291a3449b04688b81e32621e88de8f4314b54; \>= e50e5129f384ae282adebfb561189cdb19b81cee, \< 362a90cecd36e8a5c415966d0b75b04a0270e4dd; \>= e50e5129f384ae282adebfb561189cdb19b81cee, \< eb59cc31b6ea076021d14b04e7faab1636b87d0e; \>= e50e5129f384ae282adebfb561189cdb19b81cee, \< 3bc6317033f365ce578eb6039445fb66162722fd; \>= e50e5129f384ae282adebfb561189cdb19b81cee, \< 836e625b03a666cf93ff5be328c8cb30336db872; \>= e50e5129f384ae282adebfb561189cdb19b81cee, \< c8e008b60492cf6fd31ef127aea6d02fd3d314cd; Linux 4.13.

### Is there a fix for CVE-2025-37738?

Yes. Fixed in Linux 6aff941cb0f7d0c897c3698ad2e30672709135e3, Linux 76c365fa7e2a8bb85f0190cdb4b8cdc99b2fdce3, Linux 362a90cecd36e8a5c415966d0b75b04a0270e4dd, Linux 3bc6317033f365ce578eb6039445fb66162722fd, Linux 836e625b03a666cf93ff5be328c8cb30336db872. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-37738?

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

- patch: <https://git.kernel.org/stable/c/6aff941cb0f7d0c897c3698ad2e30672709135e3>
- patch: <https://git.kernel.org/stable/c/76c365fa7e2a8bb85f0190cdb4b8cdc99b2fdce3>
- patch: <https://git.kernel.org/stable/c/f737418b6de31c962c7192777ee4018906975383>
- patch: <https://git.kernel.org/stable/c/cf9291a3449b04688b81e32621e88de8f4314b54>
- patch: <https://git.kernel.org/stable/c/362a90cecd36e8a5c415966d0b75b04a0270e4dd>
- patch: <https://git.kernel.org/stable/c/eb59cc31b6ea076021d14b04e7faab1636b87d0e>
- patch: <https://git.kernel.org/stable/c/3bc6317033f365ce578eb6039445fb66162722fd>
- patch: <https://git.kernel.org/stable/c/836e625b03a666cf93ff5be328c8cb30336db872>
- patch: <https://git.kernel.org/stable/c/c8e008b60492cf6fd31ef127aea6d02fd3d314cd>
- other: <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html>

## 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-2025-37738>

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