CVE-2022-49548

Source
https://cve.org/CVERecord?id=CVE-2022-49548
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-49548.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-49548
Downstream
Related
Published
2025-02-26T02:13:59.797Z
Modified
2026-03-12T03:25:24.792891Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
bpf: Fix potential array overflow in bpf_trampoline_get_progs()
Details

In the Linux kernel, the following vulnerability has been resolved:

bpf: Fix potential array overflow in bpftrampolineget_progs()

The cnt value in the 'cnt >= BPFMAXTRAMPPROGS' check does not include BPFTRAMPMODIFYRETURN bpf programs, so the number of the attached BPFTRAMPMODIFYRETURN bpf programs in a trampoline can exceed BPFMAXTRAMPPROGS.

When this happens, the assignment '*progs++ = aux->prog' in bpftrampolinegetprogs() will cause progs array overflow as the progs field in the bpftrampprogs struct can only hold at most BPFMAXTRAMPPROGS bpf programs.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49548.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
88fd9e5352fe05f7fe57778293aebd4cd106960b
Fixed
7f845de2863334bed4f362e95853f5e7bc323737
Fixed
e36452d5da6325df7c10cffc60a9e68d21e2606d
Fixed
32c4559c61652f24c9fdd5440342196fe37453bc
Fixed
4f8897bcc20b9ae44758e0572538d741ab66f0dc
Fixed
a2aa95b71c9bbec793b5c5fa50f0a80d882b3e8d

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-49548.json"