4.7
MEDIUM
CVE-2024-38662
Linux Kernel BPF Sockmap/Sockhash Deletion Denial of Update
Description

In the Linux kernel, the following vulnerability has been resolved: bpf: Allow delete from sockmap/sockhash only if update is allowed We have seen an influx of syzkaller reports where a BPF program attached to a tracepoint triggers a locking rule violation by performing a map_delete on a sockmap/sockhash. We don't intend to support this artificial use scenario. Extend the existing verifier allowed-program-type check for updating sockmap/sockhash to also cover deleting from a map. From now on only BPF programs which were previously allowed to update sockmap/sockhash can delete from these map types.

INFO

Published Date :

June 21, 2024, 12:15 p.m.

Last Modified :

June 24, 2024, 6:34 p.m.

Source :

416baaa9-dc9f-4396-8d5f-8c081fb06d67

Remotely Exploitable :

No

Impact Score :

3.6

Exploitability Score :

1.0
Affected Products

The following products are affected by CVE-2024-38662 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Linux linux_kernel
References to Advisories, Solutions, and Tools

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2024-38662 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2024-38662 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • Initial Analysis by [email protected]

    Jun. 24, 2024

    Action Type Old Value New Value
    Added CVSS V3.1 NIST AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N
    Changed Reference Type https://git.kernel.org/stable/c/000a65bf1dc04fb2b65e2abf116f0bc0fc2ee7b1 No Types Assigned https://git.kernel.org/stable/c/000a65bf1dc04fb2b65e2abf116f0bc0fc2ee7b1 Mailing List, Patch
    Changed Reference Type https://git.kernel.org/stable/c/11e8ecc5b86037fec43d07b1c162e233e131b1d9 No Types Assigned https://git.kernel.org/stable/c/11e8ecc5b86037fec43d07b1c162e233e131b1d9 Mailing List, Patch
    Changed Reference Type https://git.kernel.org/stable/c/29467edc23818dc5a33042ffb4920b49b090e63d No Types Assigned https://git.kernel.org/stable/c/29467edc23818dc5a33042ffb4920b49b090e63d Mailing List, Patch
    Changed Reference Type https://git.kernel.org/stable/c/6693b172f008846811f48a099f33effc26068e1e No Types Assigned https://git.kernel.org/stable/c/6693b172f008846811f48a099f33effc26068e1e Mailing List, Patch
    Changed Reference Type https://git.kernel.org/stable/c/98e948fb60d41447fd8d2d0c3b8637fc6b6dc26d No Types Assigned https://git.kernel.org/stable/c/98e948fb60d41447fd8d2d0c3b8637fc6b6dc26d Mailing List, Patch
    Changed Reference Type https://git.kernel.org/stable/c/b81e1c5a3c70398cf76631ede63a03616ed1ba3c No Types Assigned https://git.kernel.org/stable/c/b81e1c5a3c70398cf76631ede63a03616ed1ba3c Mailing List, Patch
    Added CWE NIST NVD-CWE-noinfo
    Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.10 up to (excluding) 5.10.219 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.15 up to (excluding) 5.15.161 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.1 up to (excluding) 6.1.93 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.6 up to (excluding) 6.6.33 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.9 up to (excluding) 6.9.4 *cpe:2.3:o:linux:linux_kernel:6.10.0:rc1:*:*:*:*:*:*
  • CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Jun. 21, 2024

    Action Type Old Value New Value
    Added Description In the Linux kernel, the following vulnerability has been resolved: bpf: Allow delete from sockmap/sockhash only if update is allowed We have seen an influx of syzkaller reports where a BPF program attached to a tracepoint triggers a locking rule violation by performing a map_delete on a sockmap/sockhash. We don't intend to support this artificial use scenario. Extend the existing verifier allowed-program-type check for updating sockmap/sockhash to also cover deleting from a map. From now on only BPF programs which were previously allowed to update sockmap/sockhash can delete from these map types.
    Added Reference kernel.org https://git.kernel.org/stable/c/29467edc23818dc5a33042ffb4920b49b090e63d [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/11e8ecc5b86037fec43d07b1c162e233e131b1d9 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/6693b172f008846811f48a099f33effc26068e1e [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/000a65bf1dc04fb2b65e2abf116f0bc0fc2ee7b1 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/b81e1c5a3c70398cf76631ede63a03616ed1ba3c [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/98e948fb60d41447fd8d2d0c3b8637fc6b6dc26d [No types assigned]
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2024-38662 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2024-38662 weaknesses.

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability