bpf: Fix stackmap overflow check in __bpf_get_stackid()

Summary

CVECVE-2025-68378
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2025-12-24 11:16:01 UTC
Updated2026-10-21 13:18:23 UTC
DescriptionIn the Linux kernel, the following vulnerability has been resolved: bpf: Fix stackmap overflow check in __bpf_get_stackid() Syzkaller reported a KASAN slab-out-of-bounds write in __bpf_get_stackid() when copying stack trace data. The issue occurs when the perf trace contains more stack entries than the stack map bucket can hold, leading to an out-of-bounds write in the bucket's data array.

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected ee2a098851bfbe8bcdd964c0121f4246f00ff41e d6028caa0ee39dccd005468adfa3223b92bd3ad3 git Not specified
CNA Linux Linux affected ee2a098851bfbe8bcdd964c0121f4246f00ff41e d1f424a77b6bd27b361737ed73df49a0158f1590 git Not specified
CNA Linux Linux affected ee2a098851bfbe8bcdd964c0121f4246f00ff41e 2a008f6de163279deffd488c1deab081bce5667c git Not specified
CNA Linux Linux affected ee2a098851bfbe8bcdd964c0121f4246f00ff41e 4669a8db976c8cbd5427fe9945f12c5fa5168ff3 git Not specified
CNA Linux Linux affected ee2a098851bfbe8bcdd964c0121f4246f00ff41e 23f852daa4bab4d579110e034e4d513f7d490846 git Not specified
CNA Linux Linux affected 90805175a206f784b6a77f16f07b07f6803e286b git Not specified
CNA Linux Linux affected 398ac11f4425d1e52aaf0d05d4fc90524e1a5b5e git Not specified
CNA Linux Linux affected e750f78c4ed7cefbcefb9769b3b9e08033db39da git Not specified
CNA Linux Linux affected 6c4f243b58f5362e983386488b2d563764c567af git Not specified
CNA Linux Linux affected 5.10.110 5.11 semver Not specified
CNA Linux Linux affected 5.15.33 5.16 semver Not specified
CNA Linux Linux affected 5.16.19 5.17 semver Not specified
CNA Linux Linux affected 5.17.2 5.18 semver Not specified
CNA Linux Linux affected 5.18 Not specified
CNA Linux Linux unaffected 5.18 semver Not specified
CNA Linux Linux unaffected 6.6.160 6.6.* semver Not specified
CNA Linux Linux unaffected 6.12.63 6.12.* semver Not specified
CNA Linux Linux unaffected 6.17.13 6.17.* semver Not specified
CNA Linux Linux unaffected 6.18.2 6.18.* semver Not specified
CNA Linux Linux unaffected 6.19 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/2a008f6de163279deffd488c1deab081bce5667c 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/4669a8db976c8cbd5427fe9945f12c5fa5168ff3 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/d1f424a77b6bd27b361737ed73df49a0158f1590 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/23f852daa4bab4d579110e034e4d513f7d490846 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/d6028caa0ee39dccd005468adfa3223b92bd3ad3 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report