CVE-2026-93813
kernel: btrfs: tree-checker: validate INODE_REF's namelen
Overview
Description
In the Linux kernel, the following vulnerability has been resolved:
btrfs: tree-checker: validate INODE_REF's namelen
[BUG]
A crafted btrfs image can trigger the following crash:
BUG: unable to handle page fault for address: ffffd1dc42884000
#PF: supervisor write access in kernel mode
#PF: error_code(0x0002) - not-present page
CPU: 9 UID: 0 PID: 1034 Comm: poc Not tainted 7.1.0-rc4-custom+ #383 PREEMPT(full) 46af0a92938a63be7132e0dfd71e62327c51d5c2
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS unknown 02/02/2022
RIP: 0010:memcpy+0xc/0x10
Call Trace:
<TASK>
read_extent_buffer+0xe4/0x100 [btrfs 3cf0785dd58fec8c5ff84633b772f17ce1f92a8f]
btrfs_get_name+0x15e/0x1e0 [btrfs 3cf0785dd58fec8c5ff84633b772f17ce1f92a8f]
reconnect_path+0x165/0x390
exportfs_decode_fh_raw+0x337/0x400
? drop_caches_sysctl_handler+0xb0/0xb0
</TASK>
---[ end trace 0000000000000000 ]---
RIP: 0010:memcpy+0xc/0x10
Kernel panic - not syncing: Fatal exception
[CAUSE]
TThe crafted image has the following corrupted INODE_REF item:
item 9 key (258 INODE_REF 257) itemoff 11544 itemsize 4106
index 2 namelen 4096 name: d\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000
The itemsize matches the namelen, but the namelen is 4096, way larger
than normal name length limit (BTRFS_NAME_LEN, 255).
Meanwhile the memory of the @name is only 255 byte sized, this will cause
out-of-boundary access, and cause the above crash.
[FIX]
Add extra namelen verification for INODE_REF, just like what we have
done in ROOT_REF checks.
Now the crafted image can be rejected gracefully:
BTRFS critical (device dm-2): corrupt leaf: root=5 block=30572544 slot=14 ino=259, invalid inode ref name length, has 4096 expect [1, 255]
BTRFS error (device dm-2): read time tree block corruption detected on logical 30572544 mirror 2
[ Rebase, add a Link: tag, add an simple cause analyze ]
Source: OX vulnerability database
Severity
7.8 · HIGH
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Affected packages · 0
No registry package. This ID affects operating system packages only.
Operating systems · 109 fixes
Azure Linux 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.0 | kernel | 0:6.6.158.1-1.azl3 |
Oracle Linux 2 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 | bpftool +13 | 5.15.0-326.222.4.el8uek |
| 9 | bpftool +2 | 5.15.0-326.222.4.el9uek |
| 9 | kernel-uek +34 | 6.12.0-207.111.5.1.el9uek |
SUSE Linux Enterprise 3 releases · 6 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 15.7 | kernel-livepatch-6-4-0-150700-7-78-rt | 1-150700.1.3.1 | SUSE-SU-2026:4640-1 |
| 15.7 | kernel-livepatch-6-4-0-150700-53-84-default | 1-150700.15.3.1 | SUSE-SU-2026:4706-1 |
| 15.7 | cluster-md-kmp-default +20 | 6.4.0-150700.53.84.1 | SUSE-SU-2026:4706-1 |
| 15.7 | kernel-default-base | 6.4.0-150700.53.84.1.150700.17.47.1 | SUSE-SU-2026:4706-1 |
| 16.0 | cluster-md-kmp-default +2 | 6.12.0-160000.41.1 | SUSE-SU-2026:24651-1 |
| 16.0 | kernel-64kb +23 | 6.12.0-160000.41.1 | SUSE-SU-2026:24662-1 |
2 more rows
SUSE Linux Enterprise Micro 3 releases · 5 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 6.0 | kernel-default +5 | 6.4.0-159998.53.1 | SUSE-SU-2026:24315-1 |
| 6.0 | kernel-devel-rt +3 | 6.4.0-159998.53.1 | SUSE-SU-2026:24316-1 |
| 6.0 | kernel-default-base | 6.4.0-159998.53.1.159998.21.38 | SUSE-SU-2026:24315-1 |
| 6.1 | kernel-default +6 | 6.4.0-159998.53.1 | SUSE-SU-2026:24181-1 |
| 6.1 | kernel-devel-rt +4 | 6.4.0-159998.53.1 | SUSE-SU-2026:24182-1 |
| 6.1 | kernel-default-base | 6.4.0-159998.53.1.159998.21.38 | SUSE-SU-2026:24181-1 |
3 more rows
amazon linux 1 release · 4 packages
| Release | Package | Fixed in |
|---|---|---|
| 2023 | kernel-livepatch-6-1-189-236-399 +2 | 1:1.0-0.amzn2023 |
| 2023 | bpftool +17 | 1:6.1.189-236.399.amzn2023 |
| 2023 | bpftool6-12 +16 | 1:6.12.111-136.204.amzn2023 |
| 2023 | bpftool6-18 +17 | 1:6.18.54-121.166.amzn2023 |
debian 4 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 11 | linux | affected |
| 12 | linux | 6.1.190-1 |
| 12 | linux-6-12 | 6.12.111-1~deb12u1 |
| 13 | linux | 6.12.111-1 |
| 14 | linux | 7.2.6-1 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| linux | 1 |
openSUSE Leap 2 releases · 3 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 16.0 | cluster-md-kmp-64kb +74 | 6.12.0-160000.41.1 | openSUSE-SU-2026:22266-1 |
| 16.0 | kernel-default-base | 6.12.0-160000.41.1.160000.2.31 | openSUSE-SU-2026:22266-1 |
| 16.1 | cluster-md-kmp-nvidia64kb +11 | 6.12.0-160100.7.1 | openSUSE-SU-2026:22307-1 |
| 16.1 | cluster-md-kmp-64kb +74 | 6.12.0-160100.9.1 | openSUSE-SU-2026:22309-1 |
| 16.1 | kernel-default-base | 6.12.0-160100.9.1.160100.3.14 | openSUSE-SU-2026:22309-1 |
ubuntu 5 releases · 48 packages
| Release | Package | Fixed in |
|---|---|---|
| 18.04-ESM | linux +12 | affected |
| 20.04-ESM | linux +10 | affected |
| 20.04-ESM | linux-nvidia-tegra-5-15 | 5.15.0-1070.72~20.04.1 |
| 20.04-ESM | linux-ibm-5-15 | 5.15.0-1113.117~20.04.1 |
| 20.04-ESM | linux-riscv-5-15 | 5.15.0-1113.117~20.04.2 |
| 20.04-ESM | linux-intel-iotg-5-15 | 5.15.0-1114.120~20.04.1 |
67 more rows
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2026-93813
- git.kernel.org https://git.kernel.org/pub/scm/linux/security/vulns.git/plain/cve/published/2026/CVE-2026-93813.mbox
- git.kernel.org https://git.kernel.org/stable/c/3dc22abc21f5892406c09202fa2627196cc96967
- git.kernel.org https://git.kernel.org/stable/c/4cb41f07685f88ec724a375883bb0c731db8f6eb
- git.kernel.org https://git.kernel.org/stable/c/509d6a4d889e425f305461d8323a7b39ca6c121c
- git.kernel.org https://git.kernel.org/stable/c/60078a3e25c09d9d8fba828b0d81bb33e449a1b2
- git.kernel.org https://git.kernel.org/stable/c/8f75c19892263bc0555fba922aefe103e841e86d
- git.kernel.org https://git.kernel.org/stable/c/eeddee090b834a7d4b6a8214d2e3739e64c7a338
- kernelcve.org https://kernelcve.org/list/?q=CVE-2026-93813
- linux.oracle.com https://linux.oracle.com/cve/CVE-2026-93813.html
Show all 30 references
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2026-500574.html
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2026-93813
- ubuntu.com https://ubuntu.com/security/notices/USN-8959-1
- ubuntu.com https://ubuntu.com/security/notices/USN-8961-1
- ubuntu.com https://ubuntu.com/security/notices/USN-8962-1
- ubuntu.com https://ubuntu.com/security/notices/USN-8963-1
- ubuntu.com https://ubuntu.com/security/notices/USN-9019-1
- ubuntu.com https://ubuntu.com/security/notices/USN-9020-1
- ubuntu.com https://ubuntu.com/security/notices/USN-9021-1
- ubuntu.com https://ubuntu.com/security/notices/USN-9022-1
- ubuntu.com https://ubuntu.com/security/notices/USN-9023-1
- ubuntu.com https://ubuntu.com/security/notices/USN-9024-1
- ubuntu.com https://ubuntu.com/security/notices/USN-9025-1
- ubuntu.com https://ubuntu.com/security/notices/USN-9026-1
- ubuntu.com https://ubuntu.com/security/notices/USN-9029-1
- ubuntu.com https://ubuntu.com/security/notices/USN-9039-1
- ubuntu.com https://ubuntu.com/security/notices/USN-9040-1
- ubuntu.com https://ubuntu.com/security/notices/USN-9066-1
- ubuntu.com https://ubuntu.com/security/notices/USN-9091-1
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2026-93813
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.