CVE-2023-52676
Last modified
CVE-2023-52676 is a medium-severity vulnerability rated 5.5/10 on the CVSS scale. In the Linux kernel, the following vulnerability has been resolved: bpf: Guard stack limits against 32bit overflow This patch promotes the arithmetic around checking stack bounds to be done in the 64-bit domain, instead of the current 32bit. The arithmetic implies adding together a 64-bit register with a int offset. EPSS estimates a 0.23% chance of exploitation in the next 30 days.
Description
In the Linux kernel, the following vulnerability has been resolved: bpf: Guard stack limits against 32bit overflow This patch promotes the arithmetic around checking stack bounds to be done in the 64-bit domain, instead of the current 32bit. The arithmetic implies adding together a 64-bit register with a int offset. The register was checked to be below 1<<29 when it was variable, but not when it was fixed. The offset either comes from an instruction (in which case it is 16 bit), from another register (in which case the caller checked it to be below 1<<29 [1]), or from the size of an argument to a kfunc (in which case it can be a u32 [2]). Between the register being inconsistently checked to be below 1<<29, and the offset being up to an u32, it appears that we were open to overflowing the `int`s which were currently used for arithmetic. [1] https://github.com/torvalds/linux/blob/815fb87b753055df2d9e50f6cd80eb10235fe3e9/kernel/bpf/verifier.c#L7494-L7498 [2] https://github.com/torvalds/linux/blob/815fb87b753055df2d9e50f6cd80eb10235fe3e9/kernel/bpf/verifier.c#L11904
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.10.33, < 5.11 |
| Linux | Linux Kernel | >= 5.11.17, < 6.6.14 |
| Linux | Linux Kernel | >= 6.7, < 6.7.2 |
References
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2023-52676?
How severe is CVE-2023-52676?
How do I fix CVE-2023-52676?
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 2023
- CVE-2023-52670In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2023-52671In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2023-52672In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2023-52673In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2023-52674In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2023-52675In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2023-52677In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2023-52678In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2023-52679In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2023-5268A vulnerability was found in DedeBIZ 6.2 and classified as c…7.2
- CVE-2023-52680In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2023-52681In the Linux kernel, the following vulnerability has been re…5.5
Are you affected by CVE-2023-52676?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
