{"id":"CVE-2022-49548","summary":"bpf: Fix potential array overflow in bpf_trampoline_get_progs()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Fix potential array overflow in bpf_trampoline_get_progs()\n\nThe cnt value in the 'cnt \u003e= BPF_MAX_TRAMP_PROGS' check does not\ninclude BPF_TRAMP_MODIFY_RETURN bpf programs, so the number of\nthe attached BPF_TRAMP_MODIFY_RETURN bpf programs in a trampoline\ncan exceed BPF_MAX_TRAMP_PROGS.\n\nWhen this happens, the assignment '*progs++ = aux-\u003eprog' in\nbpf_trampoline_get_progs() will cause progs array overflow as the\nprogs field in the bpf_tramp_progs struct can only hold at most\nBPF_MAX_TRAMP_PROGS bpf programs.","modified":"2026-04-11T12:44:12.912978Z","published":"2025-02-26T02:13:59.797Z","related":["SUSE-SU-2025:1176-1","SUSE-SU-2025:1241-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49548.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/32c4559c61652f24c9fdd5440342196fe37453bc"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4f8897bcc20b9ae44758e0572538d741ab66f0dc"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7f845de2863334bed4f362e95853f5e7bc323737"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a2aa95b71c9bbec793b5c5fa50f0a80d882b3e8d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e36452d5da6325df7c10cffc60a9e68d21e2606d"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49548.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49548"},{"type":"PACKAGE","url":"https://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"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.7.0"},{"fixed":"5.10.120"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.45"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"5.17.13"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.18.0"},{"fixed":"5.18.2"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-49548.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}