{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-49548","id":"CVE-2022-49548","title":"bpf: Fix potential array overflow in bpf_trampoline_get_progs()","description":"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 '*pro","descriptionLong":"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.","published":"2025-02-26T02:13:59.797Z","updated":"2026-10-28T02:30:42.481765895Z","reserved":"2025-02-26T02:08:31.590Z","status":"Modified","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},"metrics":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"CISA-ADP"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"}],"rating":"high","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"88fd9e5352fe05f7fe57778293aebd4cd106960b","lessThan":"7f845de2863334bed4f362e95853f5e7bc323737","status":"affected","versionType":"git"},{"version":"88fd9e5352fe05f7fe57778293aebd4cd106960b","lessThan":"e36452d5da6325df7c10cffc60a9e68d21e2606d","status":"affected","versionType":"git"},{"version":"88fd9e5352fe05f7fe57778293aebd4cd106960b","lessThan":"32c4559c61652f24c9fdd5440342196fe37453bc","status":"affected","versionType":"git"},{"version":"88fd9e5352fe05f7fe57778293aebd4cd106960b","lessThan":"4f8897bcc20b9ae44758e0572538d741ab66f0dc","status":"affected","versionType":"git"},{"version":"88fd9e5352fe05f7fe57778293aebd4cd106960b","lessThan":"a2aa95b71c9bbec793b5c5fa50f0a80d882b3e8d","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.7","status":"affected"},{"version":"0","lessThan":"5.7","status":"unaffected","versionType":"semver"},{"version":"5.10.120","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.45","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"5.17.13","lessThanOrEqual":"5.17.*","status":"unaffected","versionType":"semver"},{"version":"5.18.2","lessThanOrEqual":"5.18.*","status":"unaffected","versionType":"semver"},{"version":"5.19","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-129"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/7f845de2863334bed4f362e95853f5e7bc323737","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/e36452d5da6325df7c10cffc60a9e68d21e2606d","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/32c4559c61652f24c9fdd5440342196fe37453bc","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/4f8897bcc20b9ae44758e0572538d741ab66f0dc","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/a2aa95b71c9bbec793b5c5fa50f0a80d882b3e8d","tags":["Patch","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49548.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49548","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total"},"epss":0.00296,"epssPercentile":0.2264,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-49548","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49548","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-49548","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-49548","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}