---
title: "CVE-2024-40974"
canonical_url: "https://pkgseek.com/security/CVE-2024-40974"
locale: "zh-CN"
source: "pkgseek"
entity_type: "cve"
severity: "medium"
---

# CVE-2024-40974

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 r…

CVE-2024-40974 严重级别为 MEDIUM，共索引 110 条受影响软件包构建记录，涉及 2 个发行版。

- **级别 / 评分**: MEDIUM
- **受影响构建数**: 110
- **涉及发行版**: 2
- **已标明修复版本发行版**: Oracle Linux, Ubuntu

## Affected Packages

| Distribution | Release | Package | Version | Fixed In |
| --- | --- | --- | --- | --- |
| Oracle Linux | 8 | bpftool | 4.18.0-553.8.1.el8_10 | 4.18.0-553.16.1.el8_10 |
| Oracle Linux | 8 | kernel | 4.18.0-553.8.1.el8_10 | 4.18.0-553.16.1.el8_10 |
| Oracle Linux | 8 | kernel-abi-stablelists | 4.18.0-553.8.1.el8_10 | 4.18.0-553.16.1.el8_10 |
| Oracle Linux | 8 | kernel-core | 4.18.0-553.8.1.el8_10 | 4.18.0-553.16.1.el8_10 |
| Oracle Linux | 8 | kernel-cross-headers | 4.18.0-553.8.1.el8_10 | 4.18.0-553.16.1.el8_10 |
| Oracle Linux | 8 | kernel-debug | 4.18.0-553.8.1.el8_10 | 4.18.0-553.16.1.el8_10 |
| Oracle Linux | 8 | kernel-debug-core | 4.18.0-553.8.1.el8_10 | 4.18.0-553.16.1.el8_10 |
| Oracle Linux | 8 | kernel-debug-devel | 4.18.0-553.8.1.el8_10 | 4.18.0-553.16.1.el8_10 |
| Oracle Linux | 8 | kernel-debug-modules | 4.18.0-553.8.1.el8_10 | 4.18.0-553.16.1.el8_10 |
| Oracle Linux | 8 | kernel-debug-modules-extra | 4.18.0-553.8.1.el8_10 | 4.18.0-553.16.1.el8_10 |
| Oracle Linux | 8 | kernel-devel | 4.18.0-553.8.1.el8_10 | 4.18.0-553.16.1.el8_10 |
| Oracle Linux | 8 | kernel-doc | 4.18.0-553.8.1.el8_10 | 4.18.0-553.16.1.el8_10 |
| Oracle Linux | 8 | kernel-headers | 4.18.0-553.8.1.el8_10 | 4.18.0-553.16.1.el8_10 |
| Oracle Linux | 8 | kernel-modules | 4.18.0-553.8.1.el8_10 | 4.18.0-553.16.1.el8_10 |
| Oracle Linux | 8 | kernel-modules-extra | 4.18.0-553.8.1.el8_10 | 4.18.0-553.16.1.el8_10 |
| Oracle Linux | 8 | kernel-tools | 4.18.0-553.8.1.el8_10 | 4.18.0-553.16.1.el8_10 |
| Oracle Linux | 8 | kernel-tools-libs | 4.18.0-553.8.1.el8_10 | 4.18.0-553.16.1.el8_10 |
| Oracle Linux | 8 | perf | 4.18.0-553.8.1.el8_10 | 4.18.0-553.16.1.el8_10 |
| Oracle Linux | 8 | python3-perf | 4.18.0-553.8.1.el8_10 | 4.18.0-553.16.1.el8_10 |
| Ubuntu | noble | linux-aws-headers-6.8.0-1008 | 6.8.0-1008.8 | 6.8.0-1015.16 |
| Ubuntu | noble | linux-aws-tools-6.8.0-1008 | 6.8.0-1008.8 | 6.8.0-1015.16 |
| Ubuntu | noble | linux-azure-cloud-tools-6.8.0-1007 | 6.8.0-1007.7 | 6.8.0-1014.16 |
| Ubuntu | noble | linux-azure-headers-6.8.0-1007 | 6.8.0-1007.7 | 6.8.0-1014.16 |
| Ubuntu | noble | linux-azure-tools-6.8.0-1007 | 6.8.0-1007.7 | 6.8.0-1014.16 |
| Ubuntu | noble | linux-buildinfo-6.8.0-1003-gke | 6.8.0-1003.5 | 6.8.0-1010.13 |
| Ubuntu | noble | linux-buildinfo-6.8.0-1005-ibm | 6.8.0-1005.5 | 6.8.0-1012.12 |
| Ubuntu | noble | linux-buildinfo-6.8.0-1005-oracle | 6.8.0-1005.5 | 6.8.0-1012.12 |
| Ubuntu | noble | linux-buildinfo-6.8.0-1007-azure | 6.8.0-1007.7 | 6.8.0-1014.16 |
| Ubuntu | noble | linux-buildinfo-6.8.0-1007-gcp | 6.8.0-1007.7 | 6.8.0-1014.16 |
| Ubuntu | noble | linux-buildinfo-6.8.0-1008-aws | 6.8.0-1008.8 | 6.8.0-1015.16 |
| Ubuntu | noble | linux-buildinfo-6.8.0-31-generic | 6.8.0-31.31 | 6.8.0-44.44 |
| Ubuntu | noble | linux-buildinfo-6.8.0-31-lowlatency | 6.8.0-31.31.1 | 6.8.0-44.44.1 |
| Ubuntu | noble | linux-cloud-tools-6.8.0-1007-azure | 6.8.0-1007.7 | 6.8.0-1014.16 |
| Ubuntu | noble | linux-cloud-tools-6.8.0-31 | 6.8.0-31.31 | 6.8.0-44.44 |
| Ubuntu | noble | linux-cloud-tools-6.8.0-31-generic | 6.8.0-31.31 | 6.8.0-44.44 |
| Ubuntu | noble | linux-cloud-tools-6.8.0-31-lowlatency | 6.8.0-31.31.1 | 6.8.0-44.44.1 |
| Ubuntu | noble | linux-cloud-tools-common | 6.8.0-31.31 | 6.8.0-44.44 |
| Ubuntu | noble | linux-doc | 6.8.0-31.31 | 6.8.0-44.44 |
| Ubuntu | noble | linux-gcp-headers-6.8.0-1007 | 6.8.0-1007.7 | 6.8.0-1014.16 |
| Ubuntu | noble | linux-gcp-tools-6.8.0-1007 | 6.8.0-1007.7 | 6.8.0-1014.16 |
| Ubuntu | noble | linux-gke-headers-6.8.0-1003 | 6.8.0-1003.5 | 6.8.0-1010.13 |
| Ubuntu | noble | linux-gke-tools-6.8.0-1003 | 6.8.0-1003.5 | 6.8.0-1010.13 |
| Ubuntu | noble | linux-headers-6.8.0-1003-gke | 6.8.0-1003.5 | 6.8.0-1010.13 |
| Ubuntu | noble | linux-headers-6.8.0-1005-ibm | 6.8.0-1005.5 | 6.8.0-1012.12 |
| Ubuntu | noble | linux-headers-6.8.0-1005-oracle | 6.8.0-1005.5 | 6.8.0-1012.12 |
| Ubuntu | noble | linux-headers-6.8.0-1007-azure | 6.8.0-1007.7 | 6.8.0-1014.16 |
| Ubuntu | noble | linux-headers-6.8.0-1007-gcp | 6.8.0-1007.7 | 6.8.0-1014.16 |
| Ubuntu | noble | linux-headers-6.8.0-1008-aws | 6.8.0-1008.8 | 6.8.0-1015.16 |
| Ubuntu | noble | linux-headers-6.8.0-31 | 6.8.0-31.31 | 6.8.0-44.44 |
| Ubuntu | noble | linux-headers-6.8.0-31-generic | 6.8.0-31.31 | 6.8.0-44.44 |
| Ubuntu | noble | linux-headers-6.8.0-31-lowlatency | 6.8.0-31.31.1 | 6.8.0-44.44.1 |
| Ubuntu | noble | linux-ibm-cloud-tools-common | 6.8.0-1005.5 | 6.8.0-1012.12 |
| Ubuntu | noble | linux-ibm-headers-6.8.0-1005 | 6.8.0-1005.5 | 6.8.0-1012.12 |
| Ubuntu | noble | linux-ibm-source-6.8.0 | 6.8.0-1005.5 | 6.8.0-1012.12 |
| Ubuntu | noble | linux-ibm-tools-6.8.0-1005 | 6.8.0-1005.5 | 6.8.0-1012.12 |
| Ubuntu | noble | linux-ibm-tools-common | 6.8.0-1005.5 | 6.8.0-1012.12 |
| Ubuntu | noble | linux-image-unsigned-6.8.0-1003-gke | 6.8.0-1003.5 | 6.8.0-1010.13 |
| Ubuntu | noble | linux-image-unsigned-6.8.0-1005-ibm | 6.8.0-1005.5 | 6.8.0-1012.12 |
| Ubuntu | noble | linux-image-unsigned-6.8.0-1005-oracle | 6.8.0-1005.5 | 6.8.0-1012.12 |
| Ubuntu | noble | linux-image-unsigned-6.8.0-1007-azure | 6.8.0-1007.7 | 6.8.0-1014.16 |
| Ubuntu | noble | linux-image-unsigned-6.8.0-1007-gcp | 6.8.0-1007.7 | 6.8.0-1014.16 |
| Ubuntu | noble | linux-image-unsigned-6.8.0-1008-aws | 6.8.0-1008.8 | 6.8.0-1015.16 |
| Ubuntu | noble | linux-image-unsigned-6.8.0-31-generic | 6.8.0-31.31 | 6.8.0-44.44 |
| Ubuntu | noble | linux-image-unsigned-6.8.0-31-lowlatency | 6.8.0-31.31.1 | 6.8.0-44.44.1 |
| Ubuntu | noble | linux-libc-dev | 6.8.0-31.31 | 6.8.0-44.44 |
| Ubuntu | noble | linux-lib-rust-6.8.0-31-generic | 6.8.0-31.31 | 6.8.0-44.44 |
| Ubuntu | noble | linux-lowlatency-cloud-tools-6.8.0-31 | 6.8.0-31.31.1 | 6.8.0-44.44.1 |
| Ubuntu | noble | linux-lowlatency-cloud-tools-common | 6.8.0-31.31.1 | 6.8.0-44.44.1 |
| Ubuntu | noble | linux-lowlatency-headers-6.8.0-31 | 6.8.0-31.31.1 | 6.8.0-44.44.1 |
| Ubuntu | noble | linux-lowlatency-lib-rust-6.8.0-31-lowlatency | 6.8.0-31.31.1 | 6.8.0-44.44.1 |
| Ubuntu | noble | linux-lowlatency-tools-6.8.0-31 | 6.8.0-31.31.1 | 6.8.0-44.44.1 |
| Ubuntu | noble | linux-lowlatency-tools-common | 6.8.0-31.31.1 | 6.8.0-44.44.1 |
| Ubuntu | noble | linux-lowlatency-tools-host | 6.8.0-31.31.1 | 6.8.0-44.44.1 |
| Ubuntu | noble | linux-modules-6.8.0-1003-gke | 6.8.0-1003.5 | 6.8.0-1010.13 |
| Ubuntu | noble | linux-modules-6.8.0-1005-ibm | 6.8.0-1005.5 | 6.8.0-1012.12 |
| Ubuntu | noble | linux-modules-6.8.0-1005-oracle | 6.8.0-1005.5 | 6.8.0-1012.12 |
| Ubuntu | noble | linux-modules-6.8.0-1007-azure | 6.8.0-1007.7 | 6.8.0-1014.16 |
| Ubuntu | noble | linux-modules-6.8.0-1007-gcp | 6.8.0-1007.7 | 6.8.0-1014.16 |
| Ubuntu | noble | linux-modules-6.8.0-1008-aws | 6.8.0-1008.8 | 6.8.0-1015.16 |
| Ubuntu | noble | linux-modules-6.8.0-31-generic | 6.8.0-31.31 | 6.8.0-44.44 |
| Ubuntu | noble | linux-modules-6.8.0-31-lowlatency | 6.8.0-31.31.1 | 6.8.0-44.44.1 |
| Ubuntu | noble | linux-modules-extra-6.8.0-1003-gke | 6.8.0-1003.5 | 6.8.0-1010.13 |
| Ubuntu | noble | linux-modules-extra-6.8.0-1005-ibm | 6.8.0-1005.5 | 6.8.0-1012.12 |
| Ubuntu | noble | linux-modules-extra-6.8.0-1005-oracle | 6.8.0-1005.5 | 6.8.0-1012.12 |
| Ubuntu | noble | linux-modules-extra-6.8.0-1007-azure | 6.8.0-1007.7 | 6.8.0-1014.16 |
| Ubuntu | noble | linux-modules-extra-6.8.0-1007-gcp | 6.8.0-1007.7 | 6.8.0-1014.16 |
| Ubuntu | noble | linux-modules-extra-6.8.0-1008-aws | 6.8.0-1008.8 | 6.8.0-1015.16 |
| Ubuntu | noble | linux-modules-extra-6.8.0-31-generic | 6.8.0-31.31 | 6.8.0-44.44 |
| Ubuntu | noble | linux-modules-ipu6-6.8.0-31-generic | 6.8.0-31.31 | 6.8.0-44.44 |
| Ubuntu | noble | linux-modules-ivsc-6.8.0-31-generic | 6.8.0-31.31 | 6.8.0-44.44 |
| Ubuntu | noble | linux-modules-iwlwifi-6.8.0-1005-ibm | 6.8.0-1005.5 | 6.8.0-1012.12 |
| Ubuntu | noble | linux-modules-iwlwifi-6.8.0-1005-oracle | 6.8.0-1005.5 | 6.8.0-1012.12 |
| Ubuntu | noble | linux-modules-iwlwifi-6.8.0-1007-azure | 6.8.0-1007.7 | 6.8.0-1014.16 |
| Ubuntu | noble | linux-modules-iwlwifi-6.8.0-1007-gcp | 6.8.0-1007.7 | 6.8.0-1014.16 |
| Ubuntu | noble | linux-modules-iwlwifi-6.8.0-31-generic | 6.8.0-31.31 | 6.8.0-44.44 |
| Ubuntu | noble | linux-modules-iwlwifi-6.8.0-31-lowlatency | 6.8.0-31.31.1 | 6.8.0-44.44.1 |
| Ubuntu | noble | linux-oracle-headers-6.8.0-1005 | 6.8.0-1005.5 | 6.8.0-1012.12 |
| Ubuntu | noble | linux-oracle-tools-6.8.0-1005 | 6.8.0-1005.5 | 6.8.0-1012.12 |
| Ubuntu | noble | linux-source-6.8.0 | 6.8.0-31.31 | 6.8.0-44.44 |
| Ubuntu | noble | linux-tools-6.8.0-1003-gke | 6.8.0-1003.5 | 6.8.0-1010.13 |

_Showing 100 of 110 total affected builds._
