CVE-2023-52676
bpf: Guard stack limits against 32bit overflow
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
INFO
Published Date :
May 17, 2024, 3:15 p.m.
Last Modified :
Sept. 14, 2026, 12:17 p.m.
Remotely Exploit :
No
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | |||||
| CVSS 3.1 | MEDIUM | [email protected] | ||||
| CVSS 3.1 | HIGH | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
Solution
- Update the affected kernel packages.
- Reboot the system if required.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2023-52676.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2023-52676 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-2023-52676
weaknesses.
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-2023-52676 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2023-52676 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.
-
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Sep. 14, 2026
Action Type Old Value New Value Added Reference https://git.kernel.org/stable/c/1d38a9ee81570c4bd61f557832dead4d6f816760 Added Reference https://git.kernel.org/stable/c/ad140fc856f0b1d5e2215bcb6d0cc247a86805a2 Added Reference https://git.kernel.org/stable/c/e5ad9ecb84405637df82732ee02ad741a5f782a6 Removed Reference https://git.kernel.org/stable/c/1d38a9ee81570c4bd61f557832dead4d6f816760 Removed Reference https://git.kernel.org/stable/c/ad140fc856f0b1d5e2215bcb6d0cc247a86805a2 Removed Reference https://git.kernel.org/stable/c/e5ad9ecb84405637df82732ee02ad741a5f782a6 Removed Reference Type https://git.kernel.org/stable/c/1d38a9ee81570c4bd61f557832dead4d6f816760 Types: Patch Removed Reference Type https://git.kernel.org/stable/c/ad140fc856f0b1d5e2215bcb6d0cc247a86805a2 Types: Patch Removed Reference Type https://git.kernel.org/stable/c/e5ad9ecb84405637df82732ee02ad741a5f782a6 Types: Patch -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Sep. 14, 2026
Action Type Old Value New Value Added Affected Affected value modified. <a href="https://github.com/CVEProject/cvelistV5/blob/main/cves/2023/52xxx/CVE-2023-52676.json">CVE-2023-52676</a> Added Reference https://git.kernel.org/stable/c/1d38a9ee81570c4bd61f557832dead4d6f816760 Added Reference https://git.kernel.org/stable/c/4ba97610399e83d29d1086a0827d33172539b49b Added Reference https://git.kernel.org/stable/c/ad140fc856f0b1d5e2215bcb6d0cc247a86805a2 Added Reference https://git.kernel.org/stable/c/ad1754f86a87fe74912fb542b23ff24ada4e3307 Added Reference https://git.kernel.org/stable/c/e160b2ed94a20fa940369ebd914277f88005e70d Added Reference https://git.kernel.org/stable/c/e5ad9ecb84405637df82732ee02ad741a5f782a6 Removed Reference https://git.kernel.org/stable/c/1d38a9ee81570c4bd61f557832dead4d6f816760 Removed Reference https://git.kernel.org/stable/c/ad140fc856f0b1d5e2215bcb6d0cc247a86805a2 Removed Reference https://git.kernel.org/stable/c/e5ad9ecb84405637df82732ee02ad741a5f782a6 Removed Reference Type https://git.kernel.org/stable/c/1d38a9ee81570c4bd61f557832dead4d6f816760 Types: Patch Removed Reference Type https://git.kernel.org/stable/c/ad140fc856f0b1d5e2215bcb6d0cc247a86805a2 Types: Patch Removed Reference Type https://git.kernel.org/stable/c/e5ad9ecb84405637df82732ee02ad741a5f782a6 Types: Patch -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Aug. 04, 2026
Action Type Old Value New Value Added CVSS V3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Jun. 17, 2026
Action Type Old Value New Value Added Affected [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '01f810ace9ed37255f27608a0864abebccf0aab3', 'lessThan': 'ad140fc856f0b1d5e2215bcb6d0cc247a86805a2', 'versionType': 'git'}, {'status': 'affected', 'version': '01f810ace9ed37255f27608a0864abebccf0aab3', 'lessThan': 'e5ad9ecb84405637df82732ee02ad741a5f782a6', 'versionType': 'git'}, {'status': 'affected', 'version': '01f810ace9ed37255f27608a0864abebccf0aab3', 'lessThan': '1d38a9ee81570c4bd61f557832dead4d6f816760', 'versionType': 'git'}, {'status': 'affected', 'version': 'f3c4b01689d392373301e6e60d1b02c5b4020afc', 'versionType': 'git'}, {'status': 'affected', 'version': 'd1b725ea5d104caea250427899f4e2e3ab15b4fc', 'versionType': 'git'}, {'status': 'affected', 'version': '5.10.33', 'lessThan': '5.11', 'versionType': 'semver'}, {'status': 'affected', 'version': '5.11.17', 'lessThan': '5.12', 'versionType': 'semver'}], 'programFiles': ['kernel/bpf/verifier.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '5.12'}, {'status': 'unaffected', 'version': '0', 'lessThan': '5.12', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '6.6.14', 'versionType': 'semver', 'lessThanOrEqual': '6.6.*'}, {'status': 'unaffected', 'version': '6.7.2', 'versionType': 'semver', 'lessThanOrEqual': '6.7.*'}, {'status': 'unaffected', 'version': '6.8', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['kernel/bpf/verifier.c'], 'defaultStatus': 'affected'}] -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Jun. 17, 2026
Action Type Old Value New Value Added SSVC {'id': 'CVE-2023-52676', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'none'}, {'automatable': 'no'}, {'technicalImpact': 'partial'}], 'version': '2.0.3', 'timestamp': '2024-06-12T15:14:32.563852Z'} -
Initial Analysis by [email protected]
Sep. 25, 2025
Action Type Old Value New Value Added CVSS V3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H Added CWE CWE-190 Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.7 up to (excluding) 6.7.2 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.10.33 up to (excluding) 5.11 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.11.17 up to (excluding) 6.6.14 Added Reference Type CVE: https://git.kernel.org/stable/c/1d38a9ee81570c4bd61f557832dead4d6f816760 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/1d38a9ee81570c4bd61f557832dead4d6f816760 Types: Patch Added Reference Type CVE: https://git.kernel.org/stable/c/ad140fc856f0b1d5e2215bcb6d0cc247a86805a2 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/ad140fc856f0b1d5e2215bcb6d0cc247a86805a2 Types: Patch Added Reference Type CVE: https://git.kernel.org/stable/c/e5ad9ecb84405637df82732ee02ad741a5f782a6 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/e5ad9ecb84405637df82732ee02ad741a5f782a6 Types: Patch -
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 21, 2024
Action Type Old Value New Value Added Reference https://git.kernel.org/stable/c/1d38a9ee81570c4bd61f557832dead4d6f816760 Added Reference https://git.kernel.org/stable/c/ad140fc856f0b1d5e2215bcb6d0cc247a86805a2 Added Reference https://git.kernel.org/stable/c/e5ad9ecb84405637df82732ee02ad741a5f782a6 -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
May. 29, 2024
Action Type Old Value New Value -
CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
May. 17, 2024
Action Type Old Value New Value Added 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 Added Reference kernel.org https://git.kernel.org/stable/c/ad140fc856f0b1d5e2215bcb6d0cc247a86805a2 [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/e5ad9ecb84405637df82732ee02ad741a5f782a6 [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/1d38a9ee81570c4bd61f557832dead4d6f816760 [No types assigned]