5.5
MEDIUM
CVE-2024-49850
Virtualization Linux Kernel BPF Core Type ID Local Null Pointer Dereference
Description

In the Linux kernel, the following vulnerability has been resolved: bpf: correctly handle malformed BPF_CORE_TYPE_ID_LOCAL relos In case of malformed relocation record of kind BPF_CORE_TYPE_ID_LOCAL referencing a non-existing BTF type, function bpf_core_calc_relo_insn would cause a null pointer deference. Fix this by adding a proper check upper in call stack, as malformed relocation records could be passed from user space. Simplest reproducer is a program: r0 = 0 exit With a single relocation record: .insn_off = 0, /* patch first instruction */ .type_id = 100500, /* this type id does not exist */ .access_str_off = 6, /* offset of string "0" */ .kind = BPF_CORE_TYPE_ID_LOCAL, See the link for original reproducer or next commit for a test case.

INFO

Published Date :

Oct. 21, 2024, 1:15 p.m.

Last Modified :

Oct. 22, 2024, 4:12 p.m.

Source :

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

Remotely Exploitable :

No

Impact Score :

3.6

Exploitability Score :

1.8
Affected Products

The following products are affected by CVE-2024-49850 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

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-49850 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2024-49850 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]

    Oct. 22, 2024

    Action Type Old Value New Value
    Added CVSS V3.1 NIST AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
    Changed Reference Type https://git.kernel.org/stable/c/2288b54b96dcb55bedebcef3572bb8821fc5e708 No Types Assigned https://git.kernel.org/stable/c/2288b54b96dcb55bedebcef3572bb8821fc5e708 Patch
    Changed Reference Type https://git.kernel.org/stable/c/3d2786d65aaa954ebd3fcc033ada433e10da21c4 No Types Assigned https://git.kernel.org/stable/c/3d2786d65aaa954ebd3fcc033ada433e10da21c4 Patch
    Changed Reference Type https://git.kernel.org/stable/c/584cd3ff792e1edbea20b2a7df55897159b0be3e No Types Assigned https://git.kernel.org/stable/c/584cd3ff792e1edbea20b2a7df55897159b0be3e Patch
    Changed Reference Type https://git.kernel.org/stable/c/dc7ce14f00bcd50641f2110b7a32aa6552e0780f No Types Assigned https://git.kernel.org/stable/c/dc7ce14f00bcd50641f2110b7a32aa6552e0780f Patch
    Changed Reference Type https://git.kernel.org/stable/c/e7e9c5b2dda29067332df2a85b0141a92b41f218 No Types Assigned https://git.kernel.org/stable/c/e7e9c5b2dda29067332df2a85b0141a92b41f218 Patch
    Added CWE NIST CWE-476
    Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.17 up to (excluding) 6.1.113 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.2 up to (excluding) 6.6.54 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.7 up to (excluding) 6.10.13 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.11 up to (excluding) 6.11.2
  • CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Oct. 21, 2024

    Action Type Old Value New Value
    Added Description In the Linux kernel, the following vulnerability has been resolved: bpf: correctly handle malformed BPF_CORE_TYPE_ID_LOCAL relos In case of malformed relocation record of kind BPF_CORE_TYPE_ID_LOCAL referencing a non-existing BTF type, function bpf_core_calc_relo_insn would cause a null pointer deference. Fix this by adding a proper check upper in call stack, as malformed relocation records could be passed from user space. Simplest reproducer is a program: r0 = 0 exit With a single relocation record: .insn_off = 0, /* patch first instruction */ .type_id = 100500, /* this type id does not exist */ .access_str_off = 6, /* offset of string "0" */ .kind = BPF_CORE_TYPE_ID_LOCAL, See the link for original reproducer or next commit for a test case.
    Added Reference kernel.org https://git.kernel.org/stable/c/dc7ce14f00bcd50641f2110b7a32aa6552e0780f [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/2288b54b96dcb55bedebcef3572bb8821fc5e708 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/584cd3ff792e1edbea20b2a7df55897159b0be3e [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/e7e9c5b2dda29067332df2a85b0141a92b41f218 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/3d2786d65aaa954ebd3fcc033ada433e10da21c4 [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-49850 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-49850 weaknesses.

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