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-2024-26870

published high CVSS 3.1 · 7.8

NFSv4.2: fix nfs4_listxattr kernel BUG at mm/usercopy.c:102

Published
17 Apr 2024, 10:27:30 UTC
Updated
15 Oct 2026, 00:38:55 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux012a211abd5db098094ce429de5f046368391e68 to < 4403438eaca6e91f02d272211c4d6b045092396b · 012a211abd5db098094ce429de5f046368391e68 to < 9d52865ff28245fc2134da9f99baff603a24407a · 012a211abd5db098094ce429de5f046368391e68 to < 06e828b3f1b206de08ef520fc46a40b22e1869cb · 012a211abd5db098094ce429de5f046368391e68 to < 79cdcc765969d23f4e3d6ea115660c3333498768 · 012a211abd5db098094ce429de5f046368391e68 to < 80365c9f96015bbf048fdd6c8705d3f8770132bf · 012a211abd5db098094ce429de5f046368391e68 to < 23bfecb4d852751d5e403557dd500bb563313baf · 012a211abd5db098094ce429de5f046368391e68 to < 251a658bbfceafb4d58c76b77682c8bf7bcfad65 · Other versions: unaffected Affected Not stated Linux
Linux — Linux5.9 (affected) · 0 to < 5.9 (unaffected · semver) · 5.10.214 through 5.10.* (unaffected · semver) · 5.15.153 through 5.15.* (unaffected · semver) · 6.1.83 through 6.1.* (unaffected · semver) · 6.6.23 through 6.6.* (unaffected · semver) · 6.7.11 through 6.7.* (unaffected · semver) · 6.8.2 through 6.8.* (unaffected · semver) · 6.9 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Siemens — SIMATIC S7-1500 TM MFP - GNU/Linux subsystem0 to < V1.1.1 · Other versions: unknown Affected Not stated siemens-SADP
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2KERNEL-5.10-2024-075 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2KERNEL-5.15-2024-057 Fixed Not stated Amazon Linux assessment
AlmaLinux 8 bpftool Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
Debian bullseye linux Advisory build 5.10.216-1 DSA-5681-1
Show 99 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Amazon Linux AL2023 Release evaluationALAS2023-2024-696 Fixed Not stated Amazon Linux assessment
Oracle Linux 8 bpftoolaarch64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
AlmaLinux 8 kernel Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-abi-stablelists Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-core Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-cross-headers Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-debug Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-debug-core Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-debug-devel Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-debug-modules Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-debug-modules-extra Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-devel Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-doc Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-headers Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-modules Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-modules-extra Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-rt Advisory build 4.18.0-553.16.1.rt7.357.el8_10 ALSA-2024:5102
AlmaLinux 8 kernel-rt-core Advisory build 4.18.0-553.16.1.rt7.357.el8_10 ALSA-2024:5102
AlmaLinux 8 kernel-rt-debug Advisory build 4.18.0-553.16.1.rt7.357.el8_10 ALSA-2024:5102
AlmaLinux 8 kernel-rt-debug-core Advisory build 4.18.0-553.16.1.rt7.357.el8_10 ALSA-2024:5102
AlmaLinux 8 kernel-rt-debug-devel Advisory build 4.18.0-553.16.1.rt7.357.el8_10 ALSA-2024:5102
AlmaLinux 8 kernel-rt-debug-kvm Advisory build 4.18.0-553.16.1.rt7.357.el8_10 ALSA-2024:5102
AlmaLinux 8 kernel-rt-debug-modules Advisory build 4.18.0-553.16.1.rt7.357.el8_10 ALSA-2024:5102
AlmaLinux 8 kernel-rt-debug-modules-extra Advisory build 4.18.0-553.16.1.rt7.357.el8_10 ALSA-2024:5102
AlmaLinux 8 kernel-rt-devel Advisory build 4.18.0-553.16.1.rt7.357.el8_10 ALSA-2024:5102
AlmaLinux 8 kernel-rt-kvm Advisory build 4.18.0-553.16.1.rt7.357.el8_10 ALSA-2024:5102
AlmaLinux 8 kernel-rt-modules Advisory build 4.18.0-553.16.1.rt7.357.el8_10 ALSA-2024:5102
AlmaLinux 8 kernel-rt-modules-extra Advisory build 4.18.0-553.16.1.rt7.357.el8_10 ALSA-2024:5102
AlmaLinux 8 kernel-tools Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-tools-libs Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-tools-libs-devel Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-zfcpdump Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-zfcpdump-core Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-zfcpdump-devel Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-zfcpdump-modules Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-zfcpdump-modules-extra Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 perf Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 python3-perf Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
Debian buster linux-5.10 Advisory build 5.10.216-1~deb10u1 DLA-3842-1
Oracle Linux 8 bpftoolx86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernelx86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-abi-stablelistsx86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-corex86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-cross-headersaarch64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-cross-headersx86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-debugx86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-debug-corex86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-debug-develx86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-debug-modulesx86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-debug-modules-extrax86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-develx86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-docx86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-headersaarch64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-headersx86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-modulesx86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-modules-extrax86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-toolsaarch64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-toolsx86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-tools-libsaarch64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-tools-libsx86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-tools-libs-develaarch64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-tools-libs-develx86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 perfaarch64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 perfx86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 python3-perfaarch64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 python3-perfx86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 9 bpftoolaarch64 Advisory build 0:7.4.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 bpftoolx86_64 Advisory build 0:7.4.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernelx86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-abi-stablelistsx86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-corex86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-cross-headersaarch64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-cross-headersx86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-debugx86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-debug-corex86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-debug-develx86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-debug-devel-matchedx86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-debug-modulesx86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-debug-modules-corex86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-debug-modules-extrax86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-debug-uki-virtx86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-develx86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-devel-matchedx86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-docx86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-headersaarch64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-headersx86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-modulesx86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-modules-corex86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-modules-extrax86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-toolsaarch64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-toolsx86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-tools-libsaarch64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-tools-libsx86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-tools-libs-develaarch64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-tools-libs-develx86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-uki-virtx86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-uki-virt-addonsx86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 libperfaarch64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 libperfx86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315

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

Description

In the Linux kernel, the following vulnerability has been resolved: NFSv4.2: fix nfs4_listxattr kernel BUG at mm/usercopy.c:102 A call to listxattr() with a buffer size = 0 returns the actual size of the buffer needed for a subsequent call. When size > 0, nfs4_listxattr() does not return an error because either generic_listxattr() or nfs4_listxattr_nfs4_label() consumes exactly all the bytes then size is 0 when calling nfs4_listxattr_nfs4_user() which then triggers the following kernel BUG: [ 99.403778] kernel BUG at mm/usercopy.c:102! [ 99.404063] Internal error: Oops - BUG: 00000000f2000800 [#1] SMP [ 99.408463] CPU: 0 PID: 3310 Comm: python3 Not tainted 6.6.0-61.fc40.aarch64 #1 [ 99.415827] Call trace: [ 99.415985] usercopy_abort+0x70/0xa0 [ 99.416227] __check_heap_object+0x134/0x158 [ 99.416505] check_heap_object+0x150/0x188 [ 99.416696] __check_object_size.part.0+0x78/0x168 [ 99.416886] __check_object_size+0x28/0x40 [ 99.417078] listxattr+0x8c/0x120 [ 99.417252] path_listxattr+0x78/0xe0 [ 99.417476] __arm64_sys_listxattr+0x28/0x40 [ 99.417723] invoke_syscall+0x78/0x100 [ 99.417929] el0_svc_common.constprop.0+0x48/0xf0 [ 99.418186] do_el0_svc+0x24/0x38 [ 99.418376] el0_svc+0x3c/0x110 [ 99.418554] el0t_64_sync_handler+0x120/0x130 [ 99.418788] el0t_64_sync+0x194/0x198 [ 99.418994] Code: aa0003e3 d000a3e0 91310000 97f49bdb (d4210000) Issue is reproduced when generic_listxattr() returns 'system.nfs4_acl', thus calling lisxattr() with size = 16 will trigger the bug. Add check on nfs4_listxattr() to return ERANGE error when it is called with size > 0 and the return value is greater than size.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

52

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.8 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:L - The vulnerability is triggered by a local `listxattr(2)`/`llistxattr(2)`/`flistxattr(2)` syscall on a file residing on an NFSv4 mount; no network peer can initiate it on its own. Although the overflow content is supplied by the NFS server over the wire, a local syscall is required to reach the code, so the attack vector is Local. AC:L - Triggering is fully deterministic — the attacker probes with `size = 0`, then calls `listxattr()` with a size exactly equal to the generic handler list (16 bytes for `"system.nfs4_acl\0"`), with no race to win and no memory-layout condition outside their control. The required config (CONFIG_NFS_V4_2, CONFIG_NFS_V4_SECURITY_LABEL, CONFIG_HARDENED_USERCOPY) is enabled by default on mainstream distributions, as demonstrated by the reporter reproducing on a stock Fedora 40 kernel. PR:L - Any unprivileged local user with ordinary access to a file on an existing NFSv4.2 mount can call `listxattr()` and set the `user.*` xattrs that become the overflow payload; no capabilities are needed. NFS-mounted home directories on shared/multi-user hosts make this a standard unprivileged-user reach. UI:N - The attacker performs every step — setting the xattrs and issuing the sized `listxattr()` call — with no action by any other user. The pre-existing NFS mount is an environmental property of the deployment, not an interaction the attacker must induce. S:U - The over-read, the leaked data, and the heap overflow all occur within the kernel's own memory and are delivered to the attacker's own process. No VM, IOMMU, or other security-authority boundary is crossed. C:H - When hardened usercopy is not enforcing, `copy_to_user()` transfers up to XATTR_LIST_MAX (64 KB) of kernel heap memory past a 16-byte kmalloc object directly into the attacker's buffer, with the over-read length controlled by how many `user.*` xattrs the attacker attaches to the file. This is a large, attacker-sized disclosure of adjacent slab contents including potential pointers and other tasks' data. I:H - The `size_t` underflow hands `nfs4_listxattr_nfs4_user()` a past-the-end pointer with an effectively unbounded length, and `decode_listxattrs()` then memcpy()s `user.<attacker-chosen-name>\0` records past the end of a kmalloc-16 object in a loop until EOF. This is a heap buffer overflow with attacker-controlled content, length, and destination slab, which is a strong primitive for adjacent-object corruption and control-flow hijacking. A:H - The reported and reproducible outcome is `usercopy_abort()` calling `BUG()` at mm/usercopy.c:102 — a kernel oops that is a full panic on systems with `panic_on_oops` (common on embedded, automotive, and hardened deployments), repeatable at will by any local user. The heap overflow path additionally corrupts slab metadata and adjacent objects, causing further crashes.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 012a211abd5db098094ce429de5f046368391e68 to < 4403438eaca6e91f02d272211c4d6b045092396b (affected · git)012a211abd5db098094ce429de5f046368391e68 to < 9d52865ff28245fc2134da9f99baff603a24407a (affected · git)012a211abd5db098094ce429de5f046368391e68 to < 06e828b3f1b206de08ef520fc46a40b22e1869cb (affected · git)012a211abd5db098094ce429de5f046368391e68 to < 79cdcc765969d23f4e3d6ea115660c3333498768 (affected · git)012a211abd5db098094ce429de5f046368391e68 to < 80365c9f96015bbf048fdd6c8705d3f8770132bf (affected · git)012a211abd5db098094ce429de5f046368391e68 to < 23bfecb4d852751d5e403557dd500bb563313baf (affected · git)012a211abd5db098094ce429de5f046368391e68 to < 251a658bbfceafb4d58c76b77682c8bf7bcfad65 (affected · git)Default: unaffected Linux · cna
Linux Linux 5.9 (affected)0 to < 5.9 (unaffected · semver)5.10.214 through 5.10.* (unaffected · semver)5.15.153 through 5.15.* (unaffected · semver)6.1.83 through 6.1.* (unaffected · semver)6.6.23 through 6.6.* (unaffected · semver)6.7.11 through 6.7.* (unaffected · semver)6.8.2 through 6.8.* (unaffected · semver)6.9 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna
Siemens SIMATIC S7-1500 TM MFP - GNU/Linux subsystem 0 to < V1.1.1 (affected · custom)Default: unknown siemens-SADP · adp

Weaknesses

0

No weakness assertions.

References

9

Provider assertions

4

Linux · cna

NFSv4.2: fix nfs4_listxattr kernel BUG at mm/usercopy.c:102

siemens-SADP · adp

CISA-ADP · adp

CISA ADP Vulnrichment

CVE · adp

CVE Program Container

Provenance

Schema
5.2
Searchable
yes
Content hash
c368c6bfe1d6251606b80b8039b3ece7140057e17468d2cb551918191d3f72a3
Ingested
15 Oct 2026, 13:09:22 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