CVE-2025-37738 Information
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:
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—
Reference
https://git.kernel.org/stable/c/362a90cecd36e8a5c415966d0b75b04a0270e4dd https://git.kernel.org/stable/c/3bc6317033f365ce578eb6039445fb66162722fd https://git.kernel.org/stable/c/836e625b03a666cf93ff5be328c8cb30336db872 https://git.kernel.org/stable/c/c8e008b60492cf6fd31ef127aea6d02fd3d314cd https://git.kernel.org/stable/c/cf9291a3449b04688b81e32621e88de8f4314b54 https://git.kernel.org/stable/c/eb59cc31b6ea076021d14b04e7faab1636b87d0e
Share on: