bpf: Fix stackmap overflow check in __bpf_get_stackid() (Linux Linux)

CVE-2025-68378
Not available

At a glance

Source
NVD
EPSS
EPSS 0.21 % · percentile 12 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Deferred

Description

In 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.

References

European references

CERT-FR advisories

Affected products

ProductVersions
Linux · Linuxaffected ee2a098851bfbe8bcdd964c0121f4246f00ff41e < 03fe4c886667b3a09b9d6afc03bbc68afb35c82b ; affected ee2a098851bfbe8bcdd964c0121f4246f00ff41e < d6028caa0ee39dccd005468adfa3223b92bd3ad3 ; affected ee2a098851bfbe8bcdd964c0121f4246f00ff41e < d1f424a77b6bd27b361737ed73df49a0158f1590 ; affected ee2a098851bfbe8bcdd964c0121f4246f00ff41e < 2a008f6de163279deffd488c1deab081bce5667c ; affected ee2a098851bfbe8bcdd964c0121f4246f00ff41e < 4669a8db976c8cbd5427fe9945f12c5fa5168ff3 ; affected ee2a098851bfbe8bcdd964c0121f4246f00ff41e < 23f852daa4bab4d579110e034e4d513f7d490846
Linux · Linuxaffected 5.18 ; unaffected 0 < 5.18 ; unaffected 6.1.191 ≤ 6.1.* ; unaffected 6.6.160 ≤ 6.6.* ; unaffected 6.12.63 ≤ 6.12.* ; unaffected 6.17.13 ≤ 6.17.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD