{"id":"CVE-2022-49548","published":"2025-02-26T02:13:59Z","modified":"2026-05-11T19:02:04Z","title":"bpf: Fix potential array overflow in bpf_trampoline_get_progs()","vendor":"Linux","product":"Linux","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00296,"percentile":0.22771,"provenance":"source"},"cwes":[{"id":"CWE-129","name":"Improper Validation of Array Index"}],"references":[{"url":"https://git.kernel.org/stable/c/7f845de2863334bed4f362e95853f5e7bc323737","tags":[]},{"url":"https://git.kernel.org/stable/c/e36452d5da6325df7c10cffc60a9e68d21e2606d","tags":[]},{"url":"https://git.kernel.org/stable/c/32c4559c61652f24c9fdd5440342196fe37453bc","tags":[]},{"url":"https://git.kernel.org/stable/c/4f8897bcc20b9ae44758e0572538d741ab66f0dc","tags":[]},{"url":"https://git.kernel.org/stable/c/a2aa95b71c9bbec793b5c5fa50f0a80d882b3e8d","tags":[]}],"priority":{"score":10.0,"factors":[{"name":"EPSS percentile","points":4.55},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 88fd9e5352fe05f7fe57778293aebd4cd106960b, < 7f845de2863334bed4f362e95853f5e7bc323737",">= 88fd9e5352fe05f7fe57778293aebd4cd106960b, < e36452d5da6325df7c10cffc60a9e68d21e2606d",">= 88fd9e5352fe05f7fe57778293aebd4cd106960b, < 32c4559c61652f24c9fdd5440342196fe37453bc",">= 88fd9e5352fe05f7fe57778293aebd4cd106960b, < 4f8897bcc20b9ae44758e0572538d741ab66f0dc",">= 88fd9e5352fe05f7fe57778293aebd4cd106960b, < a2aa95b71c9bbec793b5c5fa50f0a80d882b3e8d"]},{"vendor":"Linux","product":"Linux","versions":["5.7"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-10-01T19:37:25.966700Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2022-54684","exploited":false,"provenance":"source"}}