CVE & CISA-KEV Catalog

CVE-2024-35917

MEDIUM
5.5
CVSS v3
NVD

Description

In the Linux kernel, the following vulnerability has been resolved: s390/bpf: Fix bpf_plt pointer arithmetic Kui-Feng Lee reported a crash on s390x triggered by the dummy_st_ops/dummy_init_ptr_arg test [1]: [<0000000000000002>] 0x2 [<00000000009d5cde>] bpf_struct_ops_test_run+0x156/0x250 [<000000000033145a>] __sys_bpf+0xa1a/0xd00 [<00000000003319dc>] __s390x_sys_bpf+0x44/0x50 [<0000000000c4382c>] __do_syscall+0x244/0x300 [<0000000000c59a40>] system_call+0x70/0x98 This is caused by GCC moving memcpy() after assignments in bpf_jit_plt(), resulting in NULL pointers being written instead of the return and the target addresses. Looking at the GCC internals, the reordering is allowed because the alias analysis thinks that the memcpy() destination and the assignments' left-hand-sides are based on different objects: new_plt and bpf_plt_ret/bpf_plt_target respectively, and therefore they cannot alias. This is in turn due to a violation of the C standard: When two pointers are subtracted, both shall point to elements of the same array object, or one past the last element of the array object ... From the C's perspective, bpf_plt_ret and bpf_plt are distinct objects and cannot be subtracted. In the practical terms, doing so confuses the GCC's alias analysis. The code was written this way in order to let the C side know a few offsets defined in the assembly. While nice, this is by no means necessary. Fix the noncompliance by hardcoding these offsets. [1] https://lore.kernel.org/bpf/[email protected]/

How to fix

Remediation Available
linuxDebian
Fixed in:6.8.9-1CVE-2024-35917
Fixed in:6.8.9-1CVE-2024-35917
linuxUbuntu
Fixed in:6.8.0-38.38USN-6893-1
linux-awsUbuntu
Fixed in:6.8.0-1011.12USN-6893-3
linux-azureUbuntu
Fixed in:6.8.0-1010.10USN-6893-1
linux-gcpUbuntu
Fixed in:6.8.0-1010.11USN-6893-1
linux-gkeUbuntu
Fixed in:6.8.0-1006.9USN-6893-2
linux-ibmUbuntu
Fixed in:6.8.0-1008.8USN-6893-1
linux-image-6.8.0-1006-gkeUbuntu
Fixed in:6.8.0-1006.9USN-6893-2
linux-image-6.8.0-1007-intelUbuntu
Fixed in:6.8.0-1007.14USN-6893-1
linux-image-6.8.0-1007-raspiUbuntu
Fixed in:6.8.0-1007.7USN-6893-1
linux-image-6.8.0-1008-ibmUbuntu
Fixed in:6.8.0-1008.8USN-6893-1
linux-image-6.8.0-1008-oemUbuntu
Fixed in:6.8.0-1008.8USN-6893-1
linux-image-6.8.0-1008-oracleUbuntu
Fixed in:6.8.0-1008.8USN-6918-1
linux-image-6.8.0-1008-oracle-64kUbuntu
Fixed in:6.8.0-1008.8USN-6918-1
linux-image-6.8.0-1009-nvidiaUbuntu
Fixed in:6.8.0-1009.9USN-6893-2
linux-image-6.8.0-1009-nvidia-64kUbuntu
Fixed in:6.8.0-1009.9USN-6893-2
linux-image-6.8.0-1010-azureUbuntu
Fixed in:6.8.0-1010.10USN-6893-1
linux-image-6.8.0-1010-azure-fdeUbuntu
Fixed in:6.8.0-1010.10USN-6893-1
linux-image-6.8.0-1010-gcpUbuntu
Fixed in:6.8.0-1010.11USN-6893-1
linux-image-6.8.0-1011-awsUbuntu
Fixed in:6.8.0-1011.12USN-6893-3
linux-image-6.8.0-38-genericUbuntu
Fixed in:6.8.0-38.38USN-6893-1
linux-image-6.8.0-38-generic-64kUbuntu
Fixed in:6.8.0-38.38USN-6893-1
linux-image-6.8.0-38-lowlatencyUbuntu
Fixed in:6.8.0-38.38.1USN-6893-1
linux-image-6.8.0-38-lowlatency-64kUbuntu
Fixed in:6.8.0-38.38.1USN-6893-1
linux-image-awsUbuntu
Fixed in:6.8.0-1011.12USN-6893-3
linux-image-azureUbuntu
Fixed in:6.8.0-1010.10USN-6893-1
linux-image-azure-fdeUbuntu
Fixed in:6.8.0-1010.10USN-6893-1
linux-image-gcpUbuntu
Fixed in:6.8.0-1010.11USN-6893-1
linux-image-genericUbuntu
Fixed in:6.8.0-38.38USN-6893-1
linux-image-generic-64kUbuntu
Fixed in:6.8.0-38.38USN-6893-1
linux-image-generic-64k-hwe-24.04Ubuntu
Fixed in:6.8.0-38.38USN-6893-1
linux-image-generic-hwe-24.04Ubuntu
Fixed in:6.8.0-38.38USN-6893-1
linux-image-generic-lpaeUbuntu
Fixed in:6.8.0-38.38USN-6893-1
linux-image-gkeUbuntu
Fixed in:6.8.0-1006.9USN-6893-2
linux-image-ibmUbuntu
Fixed in:6.8.0-1008.8USN-6893-1
linux-image-ibm-classicUbuntu
Fixed in:6.8.0-1008.8USN-6893-1
linux-image-ibm-lts-24.04Ubuntu
Fixed in:6.8.0-1008.8USN-6893-1
linux-image-intelUbuntu
Fixed in:6.8.0-1007.14USN-6893-1
linux-image-kvmUbuntu
Fixed in:6.8.0-38.38USN-6893-1
linux-image-lowlatencyUbuntu
Fixed in:6.8.0-38.38.1USN-6893-1
linux-image-lowlatency-64kUbuntu
Fixed in:6.8.0-38.38.1USN-6893-1
linux-image-nvidiaUbuntu
Fixed in:6.8.0-1009.9USN-6893-2
linux-image-nvidia-64kUbuntu
Fixed in:6.8.0-1009.9USN-6893-2
linux-image-oem-24.04Ubuntu
Fixed in:6.8.0-1008.8USN-6893-1
linux-image-oem-24.04aUbuntu
Fixed in:6.8.0-1008.8USN-6893-1
linux-image-oracleUbuntu
Fixed in:6.8.0-1008.8USN-6918-1
linux-image-oracle-64kUbuntu
Fixed in:6.8.0-1008.8USN-6918-1
linux-image-raspiUbuntu
Fixed in:6.8.0-1007.7USN-6893-1
linux-image-virtualUbuntu
Fixed in:6.8.0-38.38USN-6893-1
linux-image-virtual-hwe-24.04Ubuntu
Fixed in:6.8.0-38.38USN-6893-1
linux-intelUbuntu
Fixed in:6.8.0-1007.14USN-6893-1
linux-lowlatencyUbuntu
Fixed in:6.8.0-38.38.1USN-6893-1
linux-nvidiaUbuntu
Fixed in:6.8.0-1009.9USN-6893-2
linux-oem-6.8Ubuntu
Fixed in:6.8.0-1008.8USN-6893-1
linux-oracleUbuntu
Fixed in:6.8.0-1008.8USN-6918-1
linux-raspiUbuntu
Fixed in:6.8.0-1007.7USN-6893-1

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorLocal
Attack ComplexityLow
Privileges RequiredLow
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityNone
IntegrityNone
AvailabilityHigh

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Exploit Intelligence

0.21%probability of exploitation in 30 days
11thpercentile

Low risk: more likely to be exploited than 11% of all known CVEs.

References

Related Vulnerabilities

Other CWE-476 (NULL Pointer Dereference) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2023-21758High7.592%-Fix
CVE-2023-21547High7.588%-Fix
CVE-2014-3470Medium4.386%-Fix
CVE-2021-44224High8.282%-Fix
CVE-2016-0742High7.582%-Fix
CVE-2009-1386Medium5.080%-Fix
Embed a live status badge for CVE-2024-35917
CVE-2024-35917 severity badge

Markdown

[![CVE-2024-35917](https://tridentstack.com/cve/badge/CVE-2024-35917.svg)](https://tridentstack.com/cve/CVE-2024-35917)

HTML

<a href="https://tridentstack.com/cve/CVE-2024-35917"><img src="https://tridentstack.com/cve/badge/CVE-2024-35917.svg" alt="CVE-2024-35917"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2025-09-23.