CVE-2024-49850
Last modified
CVE-2024-49850 is a medium-severity vulnerability rated 5.5/10 on the CVSS scale. 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.. EPSS estimates a 0.21% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux Kernel | >= 5.17, < 6.1.113 |
| Linux | Linux Kernel | >= 6.2, < 6.6.54 |
| Linux | Linux Kernel | >= 6.7, < 6.10.13 |
| Linux | Linux Kernel | >= 6.11, < 6.11.2 |
References
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2024-49850?
How severe is CVE-2024-49850?
How do I fix CVE-2024-49850?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2024
- CVE-2024-49845Memory corruption during the FRS UDS generation process.7.8
- CVE-2024-49846Memory corruption while decoding of OTA messages from T3448 …9.1
- CVE-2024-49847Transient DOS while processing of a registration acceptance …7.5
- CVE-2024-49848Memory corruption while processing multiple IOCTL calls from…6.7
- CVE-2024-49849A vulnerability has been identified in SIMATIC S7-PLCSIM V16…8.4
- CVE-2024-4985An authentication bypass vulnerability was present in the Gi…9.8
- CVE-2024-49851In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-49852In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2024-49853In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2024-49854In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2024-49855In the Linux kernel, the following vulnerability has been re…7
- CVE-2024-49856In the Linux kernel, the following vulnerability has been re…5.5
Are you affected by CVE-2024-49850?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
