Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2025-39817

published high CVSS 3.1 · 7.1

efivarfs: Fix slab-out-of-bounds in efivarfs_d_compare

Published
16 Sep 2025, 13:00:17 UTC
Updated
05 Aug 2026, 12:05:23 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linuxda27a24383b2b10bf6ebd0db29b325548aafecb4 to < 0f63fbabeaaaaaaf5b742a2f4c1b4590d50bf1f6 · da27a24383b2b10bf6ebd0db29b325548aafecb4 to < 794399019301944fd6d2e0d7a51b3327e26c410e · da27a24383b2b10bf6ebd0db29b325548aafecb4 to < 568e7761279b99c6daa3002290fd6d8047ddb6d2 · da27a24383b2b10bf6ebd0db29b325548aafecb4 to < d7f5e35e70507d10cbaff5f9e194ed54c4ee14f7 · da27a24383b2b10bf6ebd0db29b325548aafecb4 to < 925599eba46045930b850a98ae594d2e3028ac40 · da27a24383b2b10bf6ebd0db29b325548aafecb4 to < c2925cd6207079c3f4d040d082515db78d63afbf · da27a24383b2b10bf6ebd0db29b325548aafecb4 to < 71581a82f38e5a4d807d71fc1bb59aead80ccf95 · da27a24383b2b10bf6ebd0db29b325548aafecb4 to < a6358f8cf64850f3f27857b8ed8c1b08cfc4685c · 688289c4b745c018b3449b4b4c5a2030083c8eaf · 3.8.2 to < 3.9 · Other versions: unaffected Affected Not stated Linux
Linux — Linux3.9 (affected) · 0 to < 3.9 (unaffected · semver) · 5.4.298 through 5.4.* (unaffected · semver) · 5.10.242 through 5.10.* (unaffected · semver) · 5.15.191 through 5.15.* (unaffected · semver) · 6.1.150 through 6.1.* (unaffected · semver) · 6.6.104 through 6.6.* (unaffected · semver) · 6.12.45 through 6.12.* (unaffected · semver) · 6.16.5 through 6.16.* (unaffected · semver) · 6.17 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Siemens — SIMATIC CN 41000 to < V5.0 · Other versions: unknown Affected Not stated siemens-SADP
Amazon Linux AL2 Release evaluation Pending Fix Not stated Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2KERNEL-5.10-2025-104 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2KERNEL-5.15-2025-089 Fixed Not stated Amazon Linux assessment
AlmaLinux 10 kernel-abi-stablelists Advisory build 6.12.0-55.40.1.el10_0 ALSA-2025:18318
AlmaLinux 10 kernel-doc Advisory build 6.12.0-55.40.1.el10_0 ALSA-2025:18318
Show 101 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Amazon Linux AL2 Release evaluationALAS2KERNEL-5.4-2025-109 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2023 Release evaluationALAS2023-2025-1186 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2023 Release evaluationALAS2023-2025-1208 Fixed Not stated Amazon Linux assessment
AlmaLinux 8 bpftool Advisory build 4.18.0-553.81.1.el8_10 ALSA-2025:19102
AlmaLinux 8 kernel Advisory build 4.18.0-553.81.1.el8_10 ALSA-2025:19102
AlmaLinux 8 kernel-abi-stablelists Advisory build 4.18.0-553.81.1.el8_10 ALSA-2025:19102
AlmaLinux 8 kernel-core Advisory build 4.18.0-553.81.1.el8_10 ALSA-2025:19102
AlmaLinux 8 kernel-cross-headers Advisory build 4.18.0-553.81.1.el8_10 ALSA-2025:19102
AlmaLinux 8 kernel-debug Advisory build 4.18.0-553.81.1.el8_10 ALSA-2025:19102
AlmaLinux 8 kernel-debug-core Advisory build 4.18.0-553.81.1.el8_10 ALSA-2025:19102
AlmaLinux 8 kernel-debug-devel Advisory build 4.18.0-553.81.1.el8_10 ALSA-2025:19102
AlmaLinux 8 kernel-debug-modules Advisory build 4.18.0-553.81.1.el8_10 ALSA-2025:19102
AlmaLinux 8 kernel-debug-modules-extra Advisory build 4.18.0-553.81.1.el8_10 ALSA-2025:19102
AlmaLinux 8 kernel-devel Advisory build 4.18.0-553.81.1.el8_10 ALSA-2025:19102
AlmaLinux 8 kernel-doc Advisory build 4.18.0-553.81.1.el8_10 ALSA-2025:19102
AlmaLinux 8 kernel-headers Advisory build 4.18.0-553.81.1.el8_10 ALSA-2025:19102
AlmaLinux 8 kernel-modules Advisory build 4.18.0-553.81.1.el8_10 ALSA-2025:19102
AlmaLinux 8 kernel-modules-extra Advisory build 4.18.0-553.81.1.el8_10 ALSA-2025:19102
AlmaLinux 8 kernel-rt Advisory build 4.18.0-553.81.1.rt7.422.el8_10 ALSA-2025:19103
AlmaLinux 8 kernel-rt-core Advisory build 4.18.0-553.81.1.rt7.422.el8_10 ALSA-2025:19103
AlmaLinux 8 kernel-rt-debug Advisory build 4.18.0-553.81.1.rt7.422.el8_10 ALSA-2025:19103
AlmaLinux 8 kernel-rt-debug-core Advisory build 4.18.0-553.81.1.rt7.422.el8_10 ALSA-2025:19103
AlmaLinux 8 kernel-rt-debug-devel Advisory build 4.18.0-553.81.1.rt7.422.el8_10 ALSA-2025:19103
AlmaLinux 8 kernel-rt-debug-modules Advisory build 4.18.0-553.81.1.rt7.422.el8_10 ALSA-2025:19103
AlmaLinux 8 kernel-rt-debug-modules-extra Advisory build 4.18.0-553.81.1.rt7.422.el8_10 ALSA-2025:19103
AlmaLinux 8 kernel-rt-devel Advisory build 4.18.0-553.81.1.rt7.422.el8_10 ALSA-2025:19103
AlmaLinux 8 kernel-rt-modules Advisory build 4.18.0-553.81.1.rt7.422.el8_10 ALSA-2025:19103
AlmaLinux 8 kernel-rt-modules-extra Advisory build 4.18.0-553.81.1.rt7.422.el8_10 ALSA-2025:19103
AlmaLinux 8 kernel-tools Advisory build 4.18.0-553.81.1.el8_10 ALSA-2025:19102
AlmaLinux 8 kernel-tools-libs Advisory build 4.18.0-553.81.1.el8_10 ALSA-2025:19102
AlmaLinux 8 kernel-tools-libs-devel Advisory build 4.18.0-553.81.1.el8_10 ALSA-2025:19102
AlmaLinux 8 kernel-zfcpdump Advisory build 4.18.0-553.81.1.el8_10 ALSA-2025:19102
AlmaLinux 8 kernel-zfcpdump-core Advisory build 4.18.0-553.81.1.el8_10 ALSA-2025:19102
AlmaLinux 8 kernel-zfcpdump-devel Advisory build 4.18.0-553.81.1.el8_10 ALSA-2025:19102
AlmaLinux 8 kernel-zfcpdump-modules Advisory build 4.18.0-553.81.1.el8_10 ALSA-2025:19102
AlmaLinux 8 kernel-zfcpdump-modules-extra Advisory build 4.18.0-553.81.1.el8_10 ALSA-2025:19102
AlmaLinux 8 perf Advisory build 4.18.0-553.81.1.el8_10 ALSA-2025:19102
AlmaLinux 8 python3-perf Advisory build 4.18.0-553.81.1.el8_10 ALSA-2025:19102
AlmaLinux 9 kernel Advisory build 5.14.0-570.55.1.el9_6 ALSA-2025:18281
AlmaLinux 9 kernel-64k Advisory build 5.14.0-570.55.1.el9_6 ALSA-2025:18281
AlmaLinux 9 kernel-64k-core Advisory build 5.14.0-570.55.1.el9_6 ALSA-2025:18281
AlmaLinux 9 kernel-64k-debug Advisory build 5.14.0-570.55.1.el9_6 ALSA-2025:18281
AlmaLinux 9 kernel-64k-debug-core Advisory build 5.14.0-570.55.1.el9_6 ALSA-2025:18281
AlmaLinux 9 kernel-64k-debug-devel Advisory build 5.14.0-570.55.1.el9_6 ALSA-2025:18281
AlmaLinux 9 kernel-64k-debug-devel-matched Advisory build 5.14.0-570.55.1.el9_6 ALSA-2025:18281
AlmaLinux 9 kernel-64k-debug-modules Advisory build 5.14.0-570.55.1.el9_6 ALSA-2025:18281
AlmaLinux 9 kernel-64k-debug-modules-core Advisory build 5.14.0-570.55.1.el9_6 ALSA-2025:18281
AlmaLinux 9 kernel-64k-debug-modules-extra Advisory build 5.14.0-570.55.1.el9_6 ALSA-2025:18281
AlmaLinux 9 kernel-64k-devel Advisory build 5.14.0-570.55.1.el9_6 ALSA-2025:18281
AlmaLinux 9 kernel-64k-devel-matched Advisory build 5.14.0-570.55.1.el9_6 ALSA-2025:18281
AlmaLinux 9 kernel-64k-modules Advisory build 5.14.0-570.55.1.el9_6 ALSA-2025:18281
AlmaLinux 9 kernel-64k-modules-core Advisory build 5.14.0-570.55.1.el9_6 ALSA-2025:18281
AlmaLinux 9 kernel-64k-modules-extra Advisory build 5.14.0-570.55.1.el9_6 ALSA-2025:18281
AlmaLinux 9 kernel-abi-stablelists Advisory build 5.14.0-570.55.1.el9_6 ALSA-2025:18281
AlmaLinux 9 kernel-core Advisory build 5.14.0-570.55.1.el9_6 ALSA-2025:18281
AlmaLinux 9 kernel-cross-headers Advisory build 5.14.0-570.55.1.el9_6 ALSA-2025:18281
AlmaLinux 9 kernel-debug Advisory build 5.14.0-570.55.1.el9_6 ALSA-2025:18281
AlmaLinux 9 kernel-debug-core Advisory build 5.14.0-570.55.1.el9_6 ALSA-2025:18281
AlmaLinux 9 kernel-debug-devel Advisory build 5.14.0-570.55.1.el9_6 ALSA-2025:18281
AlmaLinux 9 kernel-debug-devel-matched Advisory build 5.14.0-570.55.1.el9_6 ALSA-2025:18281
AlmaLinux 9 kernel-debug-modules Advisory build 5.14.0-570.55.1.el9_6 ALSA-2025:18281
AlmaLinux 9 kernel-debug-modules-core Advisory build 5.14.0-570.55.1.el9_6 ALSA-2025:18281
AlmaLinux 9 kernel-debug-modules-extra Advisory build 5.14.0-570.55.1.el9_6 ALSA-2025:18281
AlmaLinux 9 kernel-debug-uki-virt Advisory build 5.14.0-570.55.1.el9_6 ALSA-2025:18281
AlmaLinux 9 kernel-devel Advisory build 5.14.0-570.55.1.el9_6 ALSA-2025:18281
AlmaLinux 9 kernel-devel-matched Advisory build 5.14.0-570.55.1.el9_6 ALSA-2025:18281
AlmaLinux 9 kernel-doc Advisory build 5.14.0-570.55.1.el9_6 ALSA-2025:18281
AlmaLinux 9 kernel-headers Advisory build 5.14.0-570.55.1.el9_6 ALSA-2025:18281
AlmaLinux 9 kernel-modules Advisory build 5.14.0-570.55.1.el9_6 ALSA-2025:18281
AlmaLinux 9 kernel-modules-core Advisory build 5.14.0-570.55.1.el9_6 ALSA-2025:18281
AlmaLinux 9 kernel-modules-extra Advisory build 5.14.0-570.55.1.el9_6 ALSA-2025:18281
AlmaLinux 9 kernel-rt Advisory build 5.14.0-570.55.1.el9_6 ALSA-2025:18281
AlmaLinux 9 kernel-rt-64k Advisory build 5.14.0-570.55.1.el9_6 ALSA-2025:18281
AlmaLinux 9 kernel-rt-64k-core Advisory build 5.14.0-570.55.1.el9_6 ALSA-2025:18281
AlmaLinux 9 kernel-rt-64k-debug Advisory build 5.14.0-570.55.1.el9_6 ALSA-2025:18281
AlmaLinux 9 kernel-rt-64k-debug-core Advisory build 5.14.0-570.55.1.el9_6 ALSA-2025:18281
AlmaLinux 9 kernel-rt-64k-debug-devel Advisory build 5.14.0-570.55.1.el9_6 ALSA-2025:18281
AlmaLinux 9 kernel-rt-64k-debug-modules Advisory build 5.14.0-570.55.1.el9_6 ALSA-2025:18281
AlmaLinux 9 kernel-rt-64k-debug-modules-core Advisory build 5.14.0-570.55.1.el9_6 ALSA-2025:18281
AlmaLinux 9 kernel-rt-64k-debug-modules-extra Advisory build 5.14.0-570.55.1.el9_6 ALSA-2025:18281
AlmaLinux 9 kernel-rt-64k-devel Advisory build 5.14.0-570.55.1.el9_6 ALSA-2025:18281
AlmaLinux 9 kernel-rt-64k-modules Advisory build 5.14.0-570.55.1.el9_6 ALSA-2025:18281
AlmaLinux 9 kernel-rt-64k-modules-core Advisory build 5.14.0-570.55.1.el9_6 ALSA-2025:18281
AlmaLinux 9 kernel-rt-64k-modules-extra Advisory build 5.14.0-570.55.1.el9_6 ALSA-2025:18281
AlmaLinux 9 kernel-rt-core Advisory build 5.14.0-570.55.1.el9_6 ALSA-2025:18281
AlmaLinux 9 kernel-rt-debug Advisory build 5.14.0-570.55.1.el9_6 ALSA-2025:18281
AlmaLinux 9 kernel-rt-debug-core Advisory build 5.14.0-570.55.1.el9_6 ALSA-2025:18281
AlmaLinux 9 kernel-rt-debug-devel Advisory build 5.14.0-570.55.1.el9_6 ALSA-2025:18281
AlmaLinux 9 kernel-rt-debug-kvm Advisory build 5.14.0-570.55.1.el9_6 ALSA-2025:18281
AlmaLinux 9 kernel-rt-debug-modules Advisory build 5.14.0-570.55.1.el9_6 ALSA-2025:18281
AlmaLinux 9 kernel-rt-debug-modules-core Advisory build 5.14.0-570.55.1.el9_6 ALSA-2025:18281
AlmaLinux 9 kernel-rt-debug-modules-extra Advisory build 5.14.0-570.55.1.el9_6 ALSA-2025:18281
AlmaLinux 9 kernel-rt-devel Advisory build 5.14.0-570.55.1.el9_6 ALSA-2025:18281
AlmaLinux 9 kernel-rt-kvm Advisory build 5.14.0-570.55.1.el9_6 ALSA-2025:18281
AlmaLinux 9 kernel-rt-modules Advisory build 5.14.0-570.55.1.el9_6 ALSA-2025:18281
AlmaLinux 9 kernel-rt-modules-core Advisory build 5.14.0-570.55.1.el9_6 ALSA-2025:18281
AlmaLinux 9 kernel-rt-modules-extra Advisory build 5.14.0-570.55.1.el9_6 ALSA-2025:18281
AlmaLinux 9 kernel-tools Advisory build 5.14.0-570.55.1.el9_6 ALSA-2025:18281
AlmaLinux 9 kernel-tools-libs Advisory build 5.14.0-570.55.1.el9_6 ALSA-2025:18281
AlmaLinux 9 kernel-tools-libs-devel Advisory build 5.14.0-570.55.1.el9_6 ALSA-2025:18281
AlmaLinux 9 kernel-uki-virt Advisory build 5.14.0-570.55.1.el9_6 ALSA-2025:18281

Package entries are limited to the first 100 builds and 100 linked advisories.

Description

In the Linux kernel, the following vulnerability has been resolved: efivarfs: Fix slab-out-of-bounds in efivarfs_d_compare Observed on kernel 6.6 (present on master as well): BUG: KASAN: slab-out-of-bounds in memcmp+0x98/0xd0 Call trace: kasan_check_range+0xe8/0x190 __asan_loadN+0x1c/0x28 memcmp+0x98/0xd0 efivarfs_d_compare+0x68/0xd8 __d_lookup_rcu_op_compare+0x178/0x218 __d_lookup_rcu+0x1f8/0x228 d_alloc_parallel+0x150/0x648 lookup_open.isra.0+0x5f0/0x8d0 open_last_lookups+0x264/0x828 path_openat+0x130/0x3f8 do_filp_open+0x114/0x248 do_sys_openat2+0x340/0x3c0 __arm64_sys_openat+0x120/0x1a0 If dentry->d_name.len < EFI_VARIABLE_GUID_LEN , 'guid' can become negative, leadings to oob. The issue can be triggered by parallel lookups using invalid filename: T1 T2 lookup_open ->lookup simple_lookup d_add // invalid dentry is added to hash list lookup_open d_alloc_parallel __d_lookup_rcu __d_lookup_rcu_op_compare hlist_bl_for_each_entry_rcu // invalid dentry can be retrieved ->d_compare efivarfs_d_compare // oob Fix it by checking 'guid' before cmp.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

75

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.1 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
Scenarios
en: AV:L - The vulnerable `efivarfs_d_compare()` is reached only through local path-lookup syscalls (`openat`/`stat`) against the efivarfs mount at /sys/firmware/efi/efivars. There is no network or remote-peer input path into the dcache lookup for this filesystem. AC:L - `efivarfs_d_hash()` makes every name shorter than 36 bytes hash to the same value, so the attacker deterministically constructs the bucket collision and length match rather than guessing them, and both sides of the parallel-lookup race are attacker threads that can retry in a tight loop indefinitely. No condition outside the attacker's control is required. PR:L - The efivarfs root directory is mode 0755 and lookup requires only MAY_EXEC, so any unprivileged local user can issue the two concurrent `openat()` calls; `->lookup` is `simple_lookup` with no name validation and no write permission needed. No capability, and no root, is involved. UI:N - The attacker drives both racing lookups themselves with no victim participation. efivarfs being mounted is a default-deployment property of UEFI systems (systemd mounts it at boot), not an action a user must be tricked into performing. S:U - The out-of-bounds read stays within kernel slab memory under the same kernel security authority; no VM, IOMMU, or sandbox boundary is crossed. C:H - The negative `guid` is promoted to a ~2^64 `size_t`, giving a length-unbounded read that walks past the `dentry_cache` object into arbitrary adjacent kernel heap memory, and the attacker controls the comparison bytes on both sides so the early-exit point of `memcmp` acts as an oracle on that memory. Per kernel guidance an unbounded OOB read scores High. I:N - `efivarfs_d_compare()` performs only `memcmp`/`strncasecmp` reads and writes nothing; a false dentry match that could redirect a lookup to the wrong EFI variable would require ~2^64 consecutive matching bytes, which faults long before it could occur. A:H - The KASAN trace in the fix commit documents a slab-out-of-bounds abort, and the unbounded read readily runs off the slab page into unmapped memory, producing an oops or panic (and an immediate panic under KASAN/panic_on_oops). The attacker can retrigger it at will from an unprivileged loop.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux da27a24383b2b10bf6ebd0db29b325548aafecb4 to < 0f63fbabeaaaaaaf5b742a2f4c1b4590d50bf1f6 (affected · git)da27a24383b2b10bf6ebd0db29b325548aafecb4 to < 794399019301944fd6d2e0d7a51b3327e26c410e (affected · git)da27a24383b2b10bf6ebd0db29b325548aafecb4 to < 568e7761279b99c6daa3002290fd6d8047ddb6d2 (affected · git)da27a24383b2b10bf6ebd0db29b325548aafecb4 to < d7f5e35e70507d10cbaff5f9e194ed54c4ee14f7 (affected · git)da27a24383b2b10bf6ebd0db29b325548aafecb4 to < 925599eba46045930b850a98ae594d2e3028ac40 (affected · git)da27a24383b2b10bf6ebd0db29b325548aafecb4 to < c2925cd6207079c3f4d040d082515db78d63afbf (affected · git)da27a24383b2b10bf6ebd0db29b325548aafecb4 to < 71581a82f38e5a4d807d71fc1bb59aead80ccf95 (affected · git)da27a24383b2b10bf6ebd0db29b325548aafecb4 to < a6358f8cf64850f3f27857b8ed8c1b08cfc4685c (affected · git)688289c4b745c018b3449b4b4c5a2030083c8eaf (affected · git)3.8.2 to < 3.9 (affected · semver)Default: unaffected Linux · cna
Linux Linux 3.9 (affected)0 to < 3.9 (unaffected · semver)5.4.298 through 5.4.* (unaffected · semver)5.10.242 through 5.10.* (unaffected · semver)5.15.191 through 5.15.* (unaffected · semver)6.1.150 through 6.1.* (unaffected · semver)6.6.104 through 6.6.* (unaffected · semver)6.12.45 through 6.12.* (unaffected · semver)6.16.5 through 6.16.* (unaffected · semver)6.17 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna
Siemens SIMATIC CN 4100 0 to < V5.0 (affected · custom)Default: unknown siemens-SADP · adp

Weaknesses

0

No weakness assertions.

References

11

Provider assertions

4

Linux · cna

efivarfs: Fix slab-out-of-bounds in efivarfs_d_compare

siemens-SADP · adp

CISA-ADP · adp

CISA ADP Vulnrichment

CVE · adp

CVE Program Container

Provenance

Schema
5.2
Searchable
yes
Content hash
f28fb323fbe0a0923e2514916b0c8fd1921aec68061e0eb29fe5b99aa6d9a7f5
Ingested
23 Sep 2026, 08:47:06 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected