CVE-2025-40246
publishedxfs: fix out of bounds memory read error in symlink repair
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux2651923d8d8db00a57665822f017fa7c76758044 to < 7c2d68e091584149fe89bcbaf9b99b3162d46ee7 · 2651923d8d8db00a57665822f017fa7c76758044 to < 81a8685cac4bf081c93a7df591644f4f80240bb9 · 2651923d8d8db00a57665822f017fa7c76758044 to < 678e1cc2f482e0985a0613ab4a5bf89c497e5acc · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.10 (affected) · 0 to < 6.10 (unaffected · semver) · 6.12.60 through 6.12.* (unaffected · semver) · 6.17.10 through 6.17.* (unaffected · semver) · 6.18 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Oracle Linux | 10 | kernel-uekaarch64 | Advisory build | 0:6.12.0-108.64.6.3.el10uek | ELSA-2026-50112 |
| Oracle Linux | 10 | kernel-uekx86_64 | Advisory build | 0:6.12.0-108.64.6.3.el10uek | ELSA-2026-50112 |
| Oracle Linux | 10 | kernel-uek-coreaarch64 | Advisory build | 0:6.12.0-108.64.6.3.el10uek | ELSA-2026-50112 |
| Oracle Linux | 10 | kernel-uek-corex86_64 | Advisory build | 0:6.12.0-108.64.6.3.el10uek | ELSA-2026-50112 |
Show 96 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Oracle Linux | 10 | kernel-uek-debugaarch64 | Advisory build | 0:6.12.0-108.64.6.3.el10uek | ELSA-2026-50112 |
| Oracle Linux | 10 | kernel-uek-debugx86_64 | Advisory build | 0:6.12.0-108.64.6.3.el10uek | ELSA-2026-50112 |
| Oracle Linux | 10 | kernel-uek-debug-coreaarch64 | Advisory build | 0:6.12.0-108.64.6.3.el10uek | ELSA-2026-50112 |
| Oracle Linux | 10 | kernel-uek-debug-corex86_64 | Advisory build | 0:6.12.0-108.64.6.3.el10uek | ELSA-2026-50112 |
| Oracle Linux | 10 | kernel-uek-debug-develaarch64 | Advisory build | 0:6.12.0-108.64.6.3.el10uek | ELSA-2026-50112 |
| Oracle Linux | 10 | kernel-uek-debug-develx86_64 | Advisory build | 0:6.12.0-108.64.6.3.el10uek | ELSA-2026-50112 |
| Oracle Linux | 10 | kernel-uek-debug-modulesaarch64 | Advisory build | 0:6.12.0-108.64.6.3.el10uek | ELSA-2026-50112 |
| Oracle Linux | 10 | kernel-uek-debug-modulesx86_64 | Advisory build | 0:6.12.0-108.64.6.3.el10uek | ELSA-2026-50112 |
| Oracle Linux | 10 | kernel-uek-debug-modules-coreaarch64 | Advisory build | 0:6.12.0-108.64.6.3.el10uek | ELSA-2026-50112 |
| Oracle Linux | 10 | kernel-uek-debug-modules-corex86_64 | Advisory build | 0:6.12.0-108.64.6.3.el10uek | ELSA-2026-50112 |
| Oracle Linux | 10 | kernel-uek-debug-modules-deprecatedaarch64 | Advisory build | 0:6.12.0-108.64.6.3.el10uek | ELSA-2026-50112 |
| Oracle Linux | 10 | kernel-uek-debug-modules-deprecatedx86_64 | Advisory build | 0:6.12.0-108.64.6.3.el10uek | ELSA-2026-50112 |
| Oracle Linux | 10 | kernel-uek-debug-modules-desktopaarch64 | Advisory build | 0:6.12.0-108.64.6.3.el10uek | ELSA-2026-50112 |
| Oracle Linux | 10 | kernel-uek-debug-modules-desktopx86_64 | Advisory build | 0:6.12.0-108.64.6.3.el10uek | ELSA-2026-50112 |
| Oracle Linux | 10 | kernel-uek-debug-modules-extraaarch64 | Advisory build | 0:6.12.0-108.64.6.3.el10uek | ELSA-2026-50112 |
| Oracle Linux | 10 | kernel-uek-debug-modules-extrax86_64 | Advisory build | 0:6.12.0-108.64.6.3.el10uek | ELSA-2026-50112 |
| Oracle Linux | 10 | kernel-uek-debug-modules-extra-netfilteraarch64 | Advisory build | 0:6.12.0-108.64.6.3.el10uek | ELSA-2026-50112 |
| Oracle Linux | 10 | kernel-uek-debug-modules-extra-netfilterx86_64 | Advisory build | 0:6.12.0-108.64.6.3.el10uek | ELSA-2026-50112 |
| Oracle Linux | 10 | kernel-uek-debug-modules-usbaarch64 | Advisory build | 0:6.12.0-108.64.6.3.el10uek | ELSA-2026-50112 |
| Oracle Linux | 10 | kernel-uek-debug-modules-usbx86_64 | Advisory build | 0:6.12.0-108.64.6.3.el10uek | ELSA-2026-50112 |
| Oracle Linux | 10 | kernel-uek-debug-modules-wirelessaarch64 | Advisory build | 0:6.12.0-108.64.6.3.el10uek | ELSA-2026-50112 |
| Oracle Linux | 10 | kernel-uek-debug-modules-wirelessx86_64 | Advisory build | 0:6.12.0-108.64.6.3.el10uek | ELSA-2026-50112 |
| Oracle Linux | 10 | kernel-uek-develaarch64 | Advisory build | 0:6.12.0-108.64.6.3.el10uek | ELSA-2026-50112 |
| Oracle Linux | 10 | kernel-uek-develx86_64 | Advisory build | 0:6.12.0-108.64.6.3.el10uek | ELSA-2026-50112 |
| Oracle Linux | 10 | kernel-uek-docx86_64 | Advisory build | 0:6.12.0-108.64.6.3.el10uek | ELSA-2026-50112 |
| Oracle Linux | 10 | kernel-uek-modulesaarch64 | Advisory build | 0:6.12.0-108.64.6.3.el10uek | ELSA-2026-50112 |
| Oracle Linux | 10 | kernel-uek-modulesx86_64 | Advisory build | 0:6.12.0-108.64.6.3.el10uek | ELSA-2026-50112 |
| Oracle Linux | 10 | kernel-uek-modules-coreaarch64 | Advisory build | 0:6.12.0-108.64.6.3.el10uek | ELSA-2026-50112 |
| Oracle Linux | 10 | kernel-uek-modules-corex86_64 | Advisory build | 0:6.12.0-108.64.6.3.el10uek | ELSA-2026-50112 |
| Oracle Linux | 10 | kernel-uek-modules-deprecatedaarch64 | Advisory build | 0:6.12.0-108.64.6.3.el10uek | ELSA-2026-50112 |
| Oracle Linux | 10 | kernel-uek-modules-deprecatedx86_64 | Advisory build | 0:6.12.0-108.64.6.3.el10uek | ELSA-2026-50112 |
| Oracle Linux | 10 | kernel-uek-modules-desktopaarch64 | Advisory build | 0:6.12.0-108.64.6.3.el10uek | ELSA-2026-50112 |
| Oracle Linux | 10 | kernel-uek-modules-desktopx86_64 | Advisory build | 0:6.12.0-108.64.6.3.el10uek | ELSA-2026-50112 |
| Oracle Linux | 10 | kernel-uek-modules-extraaarch64 | Advisory build | 0:6.12.0-108.64.6.3.el10uek | ELSA-2026-50112 |
| Oracle Linux | 10 | kernel-uek-modules-extrax86_64 | Advisory build | 0:6.12.0-108.64.6.3.el10uek | ELSA-2026-50112 |
| Oracle Linux | 10 | kernel-uek-modules-extra-netfilteraarch64 | Advisory build | 0:6.12.0-108.64.6.3.el10uek | ELSA-2026-50112 |
| Oracle Linux | 10 | kernel-uek-modules-extra-netfilterx86_64 | Advisory build | 0:6.12.0-108.64.6.3.el10uek | ELSA-2026-50112 |
| Oracle Linux | 10 | kernel-uek-modules-usbaarch64 | Advisory build | 0:6.12.0-108.64.6.3.el10uek | ELSA-2026-50112 |
| Oracle Linux | 10 | kernel-uek-modules-usbx86_64 | Advisory build | 0:6.12.0-108.64.6.3.el10uek | ELSA-2026-50112 |
| Oracle Linux | 10 | kernel-uek-modules-wirelessaarch64 | Advisory build | 0:6.12.0-108.64.6.3.el10uek | ELSA-2026-50112 |
| Oracle Linux | 10 | kernel-uek-modules-wirelessx86_64 | Advisory build | 0:6.12.0-108.64.6.3.el10uek | ELSA-2026-50112 |
| Oracle Linux | 10 | kernel-uek-toolsaarch64 | Advisory build | 0:6.12.0-108.64.6.3.el10uek | ELSA-2026-50112 |
| Oracle Linux | 10 | kernel-uek-toolsx86_64 | Advisory build | 0:6.12.0-108.64.6.3.el10uek | ELSA-2026-50112 |
| Oracle Linux | 10 | kernel-uek64kaarch64 | Advisory build | 0:6.12.0-108.64.6.3.el10uek | ELSA-2026-50112 |
| Oracle Linux | 10 | kernel-uek64k-coreaarch64 | Advisory build | 0:6.12.0-108.64.6.3.el10uek | ELSA-2026-50112 |
| Oracle Linux | 10 | kernel-uek64k-develaarch64 | Advisory build | 0:6.12.0-108.64.6.3.el10uek | ELSA-2026-50112 |
| Oracle Linux | 10 | kernel-uek64k-modulesaarch64 | Advisory build | 0:6.12.0-108.64.6.3.el10uek | ELSA-2026-50112 |
| Oracle Linux | 10 | kernel-uek64k-modules-coreaarch64 | Advisory build | 0:6.12.0-108.64.6.3.el10uek | ELSA-2026-50112 |
| Oracle Linux | 10 | kernel-uek64k-modules-deprecatedaarch64 | Advisory build | 0:6.12.0-108.64.6.3.el10uek | ELSA-2026-50112 |
| Oracle Linux | 10 | kernel-uek64k-modules-desktopaarch64 | Advisory build | 0:6.12.0-108.64.6.3.el10uek | ELSA-2026-50112 |
| Oracle Linux | 10 | kernel-uek64k-modules-extraaarch64 | Advisory build | 0:6.12.0-108.64.6.3.el10uek | ELSA-2026-50112 |
| Oracle Linux | 10 | kernel-uek64k-modules-extra-netfilteraarch64 | Advisory build | 0:6.12.0-108.64.6.3.el10uek | ELSA-2026-50112 |
| Oracle Linux | 10 | kernel-uek64k-modules-usbaarch64 | Advisory build | 0:6.12.0-108.64.6.3.el10uek | ELSA-2026-50112 |
| Oracle Linux | 10 | kernel-uek64k-modules-wirelessaarch64 | Advisory build | 0:6.12.0-108.64.6.3.el10uek | ELSA-2026-50112 |
| Oracle Linux | 9 | kernel-uekaarch64 | Advisory build | 0:6.12.0-108.64.6.3.el9uek | ELSA-2026-50112 |
| Oracle Linux | 9 | kernel-uekx86_64 | Advisory build | 0:6.12.0-108.64.6.3.el9uek | ELSA-2026-50112 |
| Oracle Linux | 9 | kernel-uek-coreaarch64 | Advisory build | 0:6.12.0-108.64.6.3.el9uek | ELSA-2026-50112 |
| Oracle Linux | 9 | kernel-uek-corex86_64 | Advisory build | 0:6.12.0-108.64.6.3.el9uek | ELSA-2026-50112 |
| Oracle Linux | 9 | kernel-uek-debugaarch64 | Advisory build | 0:6.12.0-108.64.6.3.el9uek | ELSA-2026-50112 |
| Oracle Linux | 9 | kernel-uek-debugx86_64 | Advisory build | 0:6.12.0-108.64.6.3.el9uek | ELSA-2026-50112 |
| Oracle Linux | 9 | kernel-uek-debug-coreaarch64 | Advisory build | 0:6.12.0-108.64.6.3.el9uek | ELSA-2026-50112 |
| Oracle Linux | 9 | kernel-uek-debug-corex86_64 | Advisory build | 0:6.12.0-108.64.6.3.el9uek | ELSA-2026-50112 |
| Oracle Linux | 9 | kernel-uek-debug-develaarch64 | Advisory build | 0:6.12.0-108.64.6.3.el9uek | ELSA-2026-50112 |
| Oracle Linux | 9 | kernel-uek-debug-develx86_64 | Advisory build | 0:6.12.0-108.64.6.3.el9uek | ELSA-2026-50112 |
| Oracle Linux | 9 | kernel-uek-debug-modulesaarch64 | Advisory build | 0:6.12.0-108.64.6.3.el9uek | ELSA-2026-50112 |
| Oracle Linux | 9 | kernel-uek-debug-modulesx86_64 | Advisory build | 0:6.12.0-108.64.6.3.el9uek | ELSA-2026-50112 |
| Oracle Linux | 9 | kernel-uek-debug-modules-coreaarch64 | Advisory build | 0:6.12.0-108.64.6.3.el9uek | ELSA-2026-50112 |
| Oracle Linux | 9 | kernel-uek-debug-modules-corex86_64 | Advisory build | 0:6.12.0-108.64.6.3.el9uek | ELSA-2026-50112 |
| Oracle Linux | 9 | kernel-uek-debug-modules-deprecatedaarch64 | Advisory build | 0:6.12.0-108.64.6.3.el9uek | ELSA-2026-50112 |
| Oracle Linux | 9 | kernel-uek-debug-modules-deprecatedx86_64 | Advisory build | 0:6.12.0-108.64.6.3.el9uek | ELSA-2026-50112 |
| Oracle Linux | 9 | kernel-uek-debug-modules-desktopaarch64 | Advisory build | 0:6.12.0-108.64.6.3.el9uek | ELSA-2026-50112 |
| Oracle Linux | 9 | kernel-uek-debug-modules-desktopx86_64 | Advisory build | 0:6.12.0-108.64.6.3.el9uek | ELSA-2026-50112 |
| Oracle Linux | 9 | kernel-uek-debug-modules-extraaarch64 | Advisory build | 0:6.12.0-108.64.6.3.el9uek | ELSA-2026-50112 |
| Oracle Linux | 9 | kernel-uek-debug-modules-extrax86_64 | Advisory build | 0:6.12.0-108.64.6.3.el9uek | ELSA-2026-50112 |
| Oracle Linux | 9 | kernel-uek-debug-modules-extra-netfilteraarch64 | Advisory build | 0:6.12.0-108.64.6.3.el9uek | ELSA-2026-50112 |
| Oracle Linux | 9 | kernel-uek-debug-modules-extra-netfilterx86_64 | Advisory build | 0:6.12.0-108.64.6.3.el9uek | ELSA-2026-50112 |
| Oracle Linux | 9 | kernel-uek-debug-modules-usbaarch64 | Advisory build | 0:6.12.0-108.64.6.3.el9uek | ELSA-2026-50112 |
| Oracle Linux | 9 | kernel-uek-debug-modules-usbx86_64 | Advisory build | 0:6.12.0-108.64.6.3.el9uek | ELSA-2026-50112 |
| Oracle Linux | 9 | kernel-uek-debug-modules-wirelessaarch64 | Advisory build | 0:6.12.0-108.64.6.3.el9uek | ELSA-2026-50112 |
| Oracle Linux | 9 | kernel-uek-debug-modules-wirelessx86_64 | Advisory build | 0:6.12.0-108.64.6.3.el9uek | ELSA-2026-50112 |
| Oracle Linux | 9 | kernel-uek-develaarch64 | Advisory build | 0:6.12.0-108.64.6.3.el9uek | ELSA-2026-50112 |
| Oracle Linux | 9 | kernel-uek-develx86_64 | Advisory build | 0:6.12.0-108.64.6.3.el9uek | ELSA-2026-50112 |
| Oracle Linux | 9 | kernel-uek-docx86_64 | Advisory build | 0:6.12.0-108.64.6.3.el9uek | ELSA-2026-50112 |
| Oracle Linux | 9 | kernel-uek-modulesaarch64 | Advisory build | 0:6.12.0-108.64.6.3.el9uek | ELSA-2026-50112 |
| Oracle Linux | 9 | kernel-uek-modulesx86_64 | Advisory build | 0:6.12.0-108.64.6.3.el9uek | ELSA-2026-50112 |
| Oracle Linux | 9 | kernel-uek-modules-coreaarch64 | Advisory build | 0:6.12.0-108.64.6.3.el9uek | ELSA-2026-50112 |
| Oracle Linux | 9 | kernel-uek-modules-corex86_64 | Advisory build | 0:6.12.0-108.64.6.3.el9uek | ELSA-2026-50112 |
| Oracle Linux | 9 | kernel-uek-modules-deprecatedaarch64 | Advisory build | 0:6.12.0-108.64.6.3.el9uek | ELSA-2026-50112 |
| Oracle Linux | 9 | kernel-uek-modules-deprecatedx86_64 | Advisory build | 0:6.12.0-108.64.6.3.el9uek | ELSA-2026-50112 |
| Oracle Linux | 9 | kernel-uek-modules-desktopaarch64 | Advisory build | 0:6.12.0-108.64.6.3.el9uek | ELSA-2026-50112 |
| Oracle Linux | 9 | kernel-uek-modules-desktopx86_64 | Advisory build | 0:6.12.0-108.64.6.3.el9uek | ELSA-2026-50112 |
| Oracle Linux | 9 | kernel-uek-modules-extraaarch64 | Advisory build | 0:6.12.0-108.64.6.3.el9uek | ELSA-2026-50112 |
| Oracle Linux | 9 | kernel-uek-modules-extrax86_64 | Advisory build | 0:6.12.0-108.64.6.3.el9uek | ELSA-2026-50112 |
| Oracle Linux | 9 | kernel-uek-modules-extra-netfilteraarch64 | Advisory build | 0:6.12.0-108.64.6.3.el9uek | ELSA-2026-50112 |
| Oracle Linux | 9 | kernel-uek-modules-extra-netfilterx86_64 | Advisory build | 0:6.12.0-108.64.6.3.el9uek | ELSA-2026-50112 |
| Oracle Linux | 9 | kernel-uek-modules-usbaarch64 | Advisory build | 0:6.12.0-108.64.6.3.el9uek | ELSA-2026-50112 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
In the Linux kernel, the following vulnerability has been resolved: xfs: fix out of bounds memory read error in symlink repair xfs/286 produced this report on my test fleet: ================================================================== BUG: KFENCE: out-of-bounds read in memcpy_orig+0x54/0x110 Out-of-bounds read at 0xffff88843fe9e038 (184B right of kfence-#184): memcpy_orig+0x54/0x110 xrep_symlink_salvage_inline+0xb3/0xf0 [xfs] xrep_symlink_salvage+0x100/0x110 [xfs] xrep_symlink+0x2e/0x80 [xfs] xrep_attempt+0x61/0x1f0 [xfs] xfs_scrub_metadata+0x34f/0x5c0 [xfs] xfs_ioc_scrubv_metadata+0x387/0x560 [xfs] xfs_file_ioctl+0xe23/0x10e0 [xfs] __x64_sys_ioctl+0x76/0xc0 do_syscall_64+0x4e/0x1e0 entry_SYSCALL_64_after_hwframe+0x4b/0x53 kfence-#184: 0xffff88843fe9df80-0xffff88843fe9dfea, size=107, cache=kmalloc-128 allocated by task 3470 on cpu 1 at 263329.131592s (192823.508886s ago): xfs_init_local_fork+0x79/0xe0 [xfs] xfs_iformat_local+0xa4/0x170 [xfs] xfs_iformat_data_fork+0x148/0x180 [xfs] xfs_inode_from_disk+0x2cd/0x480 [xfs] xfs_iget+0x450/0xd60 [xfs] xfs_bulkstat_one_int+0x6b/0x510 [xfs] xfs_bulkstat_iwalk+0x1e/0x30 [xfs] xfs_iwalk_ag_recs+0xdf/0x150 [xfs] xfs_iwalk_run_callbacks+0xb9/0x190 [xfs] xfs_iwalk_ag+0x1dc/0x2f0 [xfs] xfs_iwalk_args.constprop.0+0x6a/0x120 [xfs] xfs_iwalk+0xa4/0xd0 [xfs] xfs_bulkstat+0xfa/0x170 [xfs] xfs_ioc_fsbulkstat.isra.0+0x13a/0x230 [xfs] xfs_file_ioctl+0xbf2/0x10e0 [xfs] __x64_sys_ioctl+0x76/0xc0 do_syscall_64+0x4e/0x1e0 entry_SYSCALL_64_after_hwframe+0x4b/0x53 CPU: 1 UID: 0 PID: 1300113 Comm: xfs_scrub Not tainted 6.18.0-rc4-djwx #rc4 PREEMPT(lazy) 3d744dd94e92690f00a04398d2bd8631dcef1954 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.0-4.module+el8.8.0+21164+ed375313 04/01/2014 ================================================================== On further analysis, I realized that the second parameter to min() is not correct. xfs_ifork::if_bytes is the size of the xfs_ifork::if_data buffer. if_bytes can be smaller than the data fork size because: (a) the forkoff code tries to keep the data area as large as possible (b) for symbolic links, if_bytes is the ondisk file size + 1 (c) forkoff is always a multiple of 8. Case in point: for a single-byte symlink target, forkoff will be 8 but the buffer will only be 2 bytes long. In other words, the logic here is wrong and we walk off the end of the incore buffer. Fix that.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 2651923d8d8db00a57665822f017fa7c76758044 to < 7c2d68e091584149fe89bcbaf9b99b3162d46ee7 (affected · git)2651923d8d8db00a57665822f017fa7c76758044 to < 81a8685cac4bf081c93a7df591644f4f80240bb9 (affected · git)2651923d8d8db00a57665822f017fa7c76758044 to < 678e1cc2f482e0985a0613ab4a5bf89c497e5acc (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.10 (affected)0 to < 6.10 (unaffected · semver)6.12.60 through 6.12.* (unaffected · semver)6.17.10 through 6.17.* (unaffected · semver)6.18 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
3Provider assertions
1Linux · cna
xfs: fix out of bounds memory read error in symlink repair
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- f79b241147ba47a733bdc2237d1da3d0c50171524d3e22c8801d466be63f8989
- Ingested
- 23 Sep 2026, 08:48:04 UTC
- Source record
- Official CVE record