{"id":"CVE-2022-49548","aliases":["CVE-2022-49548"],"related":[],"kind":"vulnerability","state":"published","title":"bpf: Fix potential array overflow in bpf_trampoline_get_progs()","summary":"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 >= 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->prog' 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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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 >= 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->prog' 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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: bpf: Se corrige un posible desbordamiento de matriz en bpf_trampoline_get_progs() El valor cnt en la comprobación 'cnt &gt;= BPF_MAX_TRAMP_PROGS' no incluye programas bpf BPF_TRAMP_MODIFY_RETURN, por lo que la cantidad de programas bpf BPF_TRAMP_MODIFY_RETURN adjuntos en un trampolín puede superar a BPF_MAX_TRAMP_PROGS. Cuando esto sucede, la asignación '*progs++ = aux-&gt;prog' en bpf_trampoline_get_progs() provocará un desbordamiento de la matriz progs, ya que el campo progs en la estructura bpf_tramp_progs solo puede contener como máximo programas bpf BPF_MAX_TRAMP_PROGS.","source":"nvd"}],"published":"2025-02-26T02:13:59.797Z","modified":"2026-06-17T05:18:24.830Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-129"],"affected":[{"ranges":[{"type":"git","introduced":"88fd9e5352fe05f7fe57778293aebd4cd106960b","fixed":"7f845de2863334bed4f362e95853f5e7bc323737","status":"affected"},{"type":"git","introduced":"88fd9e5352fe05f7fe57778293aebd4cd106960b","fixed":"e36452d5da6325df7c10cffc60a9e68d21e2606d","status":"affected"},{"type":"git","introduced":"88fd9e5352fe05f7fe57778293aebd4cd106960b","fixed":"32c4559c61652f24c9fdd5440342196fe37453bc","status":"affected"},{"type":"git","introduced":"88fd9e5352fe05f7fe57778293aebd4cd106960b","fixed":"4f8897bcc20b9ae44758e0572538d741ab66f0dc","status":"affected"},{"type":"git","introduced":"88fd9e5352fe05f7fe57778293aebd4cd106960b","fixed":"a2aa95b71c9bbec793b5c5fa50f0a80d882b3e8d","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.7","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.7","status":"unaffected"},{"type":"semver","introduced":"5.10.120","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.45","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"5.17.13","lastAffected":"5.17.*","status":"unaffected"},{"type":"semver","introduced":"5.18.2","lastAffected":"5.18.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"5.19","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.7","fixed":"5.10.120"},{"status":"affected","introduced":"5.11","fixed":"5.15.45"},{"status":"affected","introduced":"5.16","fixed":"5.17.13"},{"status":"affected","introduced":"5.18","fixed":"5.18.2"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/7f845de2863334bed4f362e95853f5e7bc323737","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e36452d5da6325df7c10cffc60a9e68d21e2606d","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/32c4559c61652f24c9fdd5440342196fe37453bc","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4f8897bcc20b9ae44758e0572538d741ab66f0dc","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a2aa95b71c9bbec793b5c5fa50f0a80d882b3e8d","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2025-10-01T19:37:25.966Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-49548","url":"https://www.cve.org/CVERecord?id=CVE-2022-49548","licence":"CVE Terms of Use","modified":"2026-05-11T19:02:04.684Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-49548","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49548","licence":"Public domain","modified":"2026-06-17T05:18:24.830Z"}],"updatedAt":"2026-11-25T22:58:20.723Z","epss":{"score":0.00296,"percentile":0.23937,"date":"2026-12-01T12:00:22.000Z"}}