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-40974

published high CVSS 3.1 · 7.8

powerpc/pseries: Enforce hcall result buffer validity and size

Published
12 Jul 2024, 12:32:11 UTC
Updated
05 Aug 2026, 11:34:20 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linuxb9377ffc3a03cde558d76349a262a1adbb6d3112 to < acf2b80c31c37acab040baa3cf5f19fbd5140b18 · b9377ffc3a03cde558d76349a262a1adbb6d3112 to < 19c166ee42cf16d8b156a6cb4544122d9a65d3ca · b9377ffc3a03cde558d76349a262a1adbb6d3112 to < a8c988d752b3d98d5cc1e3929c519a55ef55426c · b9377ffc3a03cde558d76349a262a1adbb6d3112 to < 262e942ff5a839b9e4f3302a8987928b0c8b8a2d · b9377ffc3a03cde558d76349a262a1adbb6d3112 to < 8aa11aa001576bf3b00dcb8559564ad7a3113588 · b9377ffc3a03cde558d76349a262a1adbb6d3112 to < 3ad0034910a57aa88ed9976b1431b7b8c84e0048 · b9377ffc3a03cde558d76349a262a1adbb6d3112 to < aa6107dcc4ce9a3451f2d729204713783b657257 · b9377ffc3a03cde558d76349a262a1adbb6d3112 to < ff2e185cf73df480ec69675936c4ee75a445c3e4 · Other versions: unaffected Affected Not stated Linux
Linux — Linux2.6.19 (affected) · 0 to < 2.6.19 (unaffected · semver) · 4.19.317 through 4.19.* (unaffected · semver) · 5.4.279 through 5.4.* (unaffected · semver) · 5.10.221 through 5.10.* (unaffected · semver) · 5.15.162 through 5.15.* (unaffected · semver) · 6.1.96 through 6.1.* (unaffected · semver) · 6.6.36 through 6.6.* (unaffected · semver) · 6.9.7 through 6.9.* (unaffected · semver) · 6.10 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
AlmaLinux 8 bpftool Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
Debian bookworm linux Advisory build 6.1.99-1 DSA-5731-1
Oracle Linux 7 kernel-uekaarch64 Advisory build 0:4.14.35-2047.541.4.1.el7uek ELSA-2024-12779
AlmaLinux 8 kernel Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
Show 96 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
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-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 bullseye linux Advisory build 5.10.221-1 DSA-5730-1
Debian bullseye linux-6.1 Advisory build 6.1.119-1~deb11u1 DLA-4008-1
Oracle Linux 7 kernel-uekaarch64 Advisory build 0:5.4.17-2136.335.4.el7uek ELSA-2024-12610
Oracle Linux 7 kernel-uekx86_64 Advisory build 0:4.14.35-2047.541.4.1.el7uek ELSA-2024-12779
Oracle Linux 7 kernel-uekx86_64 Advisory build 0:5.4.17-2136.335.4.el7uek ELSA-2024-12610
Oracle Linux 7 kernel-uek-containerx86_64 Advisory build 0:5.4.17-2136.335.4.el7 ELSA-2024-12612
Oracle Linux 7 kernel-uek-container-debugx86_64 Advisory build 0:5.4.17-2136.335.4.el7 ELSA-2024-12612
Oracle Linux 7 kernel-uek-debugaarch64 Advisory build 0:4.14.35-2047.541.4.1.el7uek ELSA-2024-12779
Oracle Linux 7 kernel-uek-debugaarch64 Advisory build 0:5.4.17-2136.335.4.el7uek ELSA-2024-12610
Oracle Linux 7 kernel-uek-debugx86_64 Advisory build 0:4.14.35-2047.541.4.1.el7uek ELSA-2024-12779
Oracle Linux 7 kernel-uek-debugx86_64 Advisory build 0:5.4.17-2136.335.4.el7uek ELSA-2024-12610
Oracle Linux 7 kernel-uek-debug-develaarch64 Advisory build 0:4.14.35-2047.541.4.1.el7uek ELSA-2024-12779
Oracle Linux 7 kernel-uek-debug-develaarch64 Advisory build 0:5.4.17-2136.335.4.el7uek ELSA-2024-12610
Oracle Linux 7 kernel-uek-debug-develx86_64 Advisory build 0:4.14.35-2047.541.4.1.el7uek ELSA-2024-12779
Oracle Linux 7 kernel-uek-debug-develx86_64 Advisory build 0:5.4.17-2136.335.4.el7uek ELSA-2024-12610
Oracle Linux 7 kernel-uek-develaarch64 Advisory build 0:4.14.35-2047.541.4.1.el7uek ELSA-2024-12779
Oracle Linux 7 kernel-uek-develaarch64 Advisory build 0:5.4.17-2136.335.4.el7uek ELSA-2024-12610
Oracle Linux 7 kernel-uek-develx86_64 Advisory build 0:4.14.35-2047.541.4.1.el7uek ELSA-2024-12779
Oracle Linux 7 kernel-uek-develx86_64 Advisory build 0:5.4.17-2136.335.4.el7uek ELSA-2024-12610
Oracle Linux 7 kernel-uek-docaarch64 Advisory build 0:5.4.17-2136.335.4.el7uek ELSA-2024-12610
Oracle Linux 7 kernel-uek-docx86_64 Advisory build 0:4.14.35-2047.541.4.1.el7uek ELSA-2024-12779
Oracle Linux 7 kernel-uek-docx86_64 Advisory build 0:5.4.17-2136.335.4.el7uek ELSA-2024-12610
Oracle Linux 7 kernel-uek-headersaarch64 Advisory build 0:4.14.35-2047.541.4.1.el7uek ELSA-2024-12779
Oracle Linux 7 kernel-uek-toolsaarch64 Advisory build 0:4.14.35-2047.541.4.1.el7uek ELSA-2024-12779
Oracle Linux 7 kernel-uek-toolsaarch64 Advisory build 0:5.4.17-2136.335.4.el7uek ELSA-2024-12610
Oracle Linux 7 kernel-uek-toolsx86_64 Advisory build 0:4.14.35-2047.541.4.1.el7uek ELSA-2024-12779
Oracle Linux 7 kernel-uek-toolsx86_64 Advisory build 0:5.4.17-2136.335.4.el7uek ELSA-2024-12610
Oracle Linux 7 kernel-uek-tools-libsaarch64 Advisory build 0:4.14.35-2047.541.4.1.el7uek ELSA-2024-12779
Oracle Linux 7 kernel-uek-tools-libsaarch64 Advisory build 0:5.4.17-2136.335.4.el7uek ELSA-2024-12610
Oracle Linux 7 kernel-uek-tools-libs-develaarch64 Advisory build 0:4.14.35-2047.541.4.1.el7uek ELSA-2024-12779
Oracle Linux 7 perfaarch64 Advisory build 0:4.14.35-2047.541.4.1.el7uek ELSA-2024-12779
Oracle Linux 7 perfaarch64 Advisory build 0:5.4.17-2136.335.4.el7uek ELSA-2024-12610
Oracle Linux 7 python-perfaarch64 Advisory build 0:4.14.35-2047.541.4.1.el7uek ELSA-2024-12779
Oracle Linux 7 python-perfaarch64 Advisory build 0:5.4.17-2136.335.4.el7uek ELSA-2024-12610
Oracle Linux 8 bpftoolaarch64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 bpftoolaarch64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 bpftoolx86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 bpftoolx86_64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
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 kernel-uekaarch64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uekaarch64 Advisory build 0:5.4.17-2136.335.4.el8uek ELSA-2024-12610
Oracle Linux 8 kernel-uekx86_64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uekx86_64 Advisory build 0:5.4.17-2136.335.4.el8uek ELSA-2024-12610
Oracle Linux 8 kernel-uek-containeraarch64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uek-containerx86_64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uek-containerx86_64 Advisory build 0:5.4.17-2136.335.4.el8 ELSA-2024-12612
Oracle Linux 8 kernel-uek-container-debugaarch64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uek-container-debugx86_64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uek-container-debugx86_64 Advisory build 0:5.4.17-2136.335.4.el8 ELSA-2024-12612
Oracle Linux 8 kernel-uek-coreaarch64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uek-corex86_64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uek-debugaarch64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618

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

Description

In the Linux kernel, the following vulnerability has been resolved: powerpc/pseries: Enforce hcall result buffer validity and size plpar_hcall(), plpar_hcall9(), and related functions expect callers to provide valid result buffers of certain minimum size. Currently this is communicated only through comments in the code and the compiler has no idea. For example, if I write a bug like this: long retbuf[PLPAR_HCALL_BUFSIZE]; // should be PLPAR_HCALL9_BUFSIZE plpar_hcall9(H_ALLOCATE_VAS_WINDOW, retbuf, ...); This compiles with no diagnostics emitted, but likely results in stack corruption at runtime when plpar_hcall9() stores results past the end of the array. (To be clear this is a contrived example and I have not found a real instance yet.) To make this class of error less likely, we can use explicitly-sized array parameters instead of pointers in the declarations for the hcall APIs. When compiled with -Warray-bounds[1], the code above now provokes a diagnostic like this: error: array argument is too small; is of size 32, callee requires at least 72 [-Werror,-Warray-bounds] 60 | plpar_hcall9(H_ALLOCATE_VAS_WINDOW, retbuf, | ^ ~~~~~~ [1] Enabled for LLVM builds but not GCC for now. See commit 0da6e5fd6c37 ("gcc: disable '-Warray-bounds' for gcc-13 too") and related changes.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

36

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 affected hcall wrappers are reached only through local interfaces on a pseries LPAR — a `read()` of `/proc/powerpc/lparcfg` (H_GET_PPP) or the `VAS_TX_WIN_OPEN` ioctl on `/dev/crypto/nx-gzip` (H_ALLOCATE_VAS_WINDOW / H_HOME_NODE_ASSOCIATIVITY). No remote peer data reaches or controls the overflow, so Network/Adjacent are not defensible. AC:L - The guarded defect is a deterministic fixed-size store — `plpar_hcall9` in hvCall.S always writes 9 doublewords regardless of buffer size — so it triggers on every invocation with no race, timing window, or memory-layout precondition. An attacker can invoke the affected paths at will and repeatedly. PR:L - Reaching the hcall wrappers requires only an unprivileged local account: `/proc/powerpc/lparcfg` is created mode 0444, and `coproc_ioctl()` in vas-api.c contains no `capable()`/`CAP_*` check at all, so any user who can open the nx-gzip node can drive the VAS hcall path. No root or namespace capability is needed. UI:N - The affected code executes directly in the context of the attacker's own syscall (read/ioctl); no victim must mount a filesystem, open a file, or take any other action. S:U - A stack overwrite in the pseries hcall wrappers corrupts the guest kernel's own stack and stays entirely within the kernel's security authority. Although the overflow data originates in hypervisor registers, that is the defined PAPR hcall ABI and no hypervisor/IOMMU boundary is crossed. C:H - A 40-byte out-of-bounds write past a caller's on-stack retbuf clobbers adjacent locals, saved registers, and pointer/length slots in the same frame, which can be steered into a subsequent copy-out and leveraged for kernel memory disclosure; per the memory-corruption guidance this rates High. I:H - This is an out-of-bounds *write* into the kernel stack — the canonical High-integrity case — capable of overwriting saved return addresses and function pointers in the affected frame and thus hijacking kernel control flow. A:H - Corrupting 40 bytes of live kernel stack, including saved link-register/frame state, reliably produces an oops or panic; the affected paths are unprivileged and can be invoked repeatedly for a sustained denial of service.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux b9377ffc3a03cde558d76349a262a1adbb6d3112 to < acf2b80c31c37acab040baa3cf5f19fbd5140b18 (affected · git)b9377ffc3a03cde558d76349a262a1adbb6d3112 to < 19c166ee42cf16d8b156a6cb4544122d9a65d3ca (affected · git)b9377ffc3a03cde558d76349a262a1adbb6d3112 to < a8c988d752b3d98d5cc1e3929c519a55ef55426c (affected · git)b9377ffc3a03cde558d76349a262a1adbb6d3112 to < 262e942ff5a839b9e4f3302a8987928b0c8b8a2d (affected · git)b9377ffc3a03cde558d76349a262a1adbb6d3112 to < 8aa11aa001576bf3b00dcb8559564ad7a3113588 (affected · git)b9377ffc3a03cde558d76349a262a1adbb6d3112 to < 3ad0034910a57aa88ed9976b1431b7b8c84e0048 (affected · git)b9377ffc3a03cde558d76349a262a1adbb6d3112 to < aa6107dcc4ce9a3451f2d729204713783b657257 (affected · git)b9377ffc3a03cde558d76349a262a1adbb6d3112 to < ff2e185cf73df480ec69675936c4ee75a445c3e4 (affected · git)Default: unaffected Linux · cna
Linux Linux 2.6.19 (affected)0 to < 2.6.19 (unaffected · semver)4.19.317 through 4.19.* (unaffected · semver)5.4.279 through 5.4.* (unaffected · semver)5.10.221 through 5.10.* (unaffected · semver)5.15.162 through 5.15.* (unaffected · semver)6.1.96 through 6.1.* (unaffected · semver)6.6.36 through 6.6.* (unaffected · semver)6.9.7 through 6.9.* (unaffected · semver)6.10 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

9

Provider assertions

3

Linux · cna

powerpc/pseries: Enforce hcall result buffer validity and size

CISA-ADP · adp

CISA ADP Vulnrichment

CVE · adp

CVE Program Container

Provenance

Schema
5.2
Searchable
yes
Content hash
f0ce16130fb128a9c769632aa119dcc56e2790101e2fbfe6c34c432a14c4058b
Ingested
23 Sep 2026, 08:26:02 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