{"id":"CVE-2022-50855","aliases":["CVE-2022-50855"],"related":[],"kind":"vulnerability","state":"published","title":"bpf: prevent leak of lsm program after failed attach","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: prevent leak of lsm program after failed attach\n\nIn [0], we added the ability to bpf_prog_attach LSM programs to cgroups,\nbut in our validation to make sure the prog is meant to be attached to\nBPF_LSM_CGROUP, we return too early if the check fails. This results in\nlack of decrementing prog's refcnt (through bpf_prog_put)\nleaving the LSM program alive past the point of the expected lifecycle.\nThis fix allows for the decrement to take place.\n\n[0] https://lore.kernel.org/all/20220628174314.1216643-4-sdf@google.com/","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: prevent leak of lsm program after failed attach\n\nIn [0], we added the ability to bpf_prog_attach LSM programs to cgroups,\nbut in our validation to make sure the prog is meant to be attached to\nBPF_LSM_CGROUP, we return too early if the check fails. This results in\nlack of decrementing prog's refcnt (through bpf_prog_put)\nleaving the LSM program alive past the point of the expected lifecycle.\nThis fix allows for the decrement to take place.\n\n[0] https://lore.kernel.org/all/20220628174314.1216643-4-sdf@google.com/","source":"cvelist"}],"published":"2025-12-30T12:15:30.481Z","modified":"2026-06-17T05:24:18.200Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"69fd337a975c7e690dfe49d9cb4fe5ba1e6db44e","fixed":"82b39df5ddb298daaf6dc504032ff7eb027fa106","status":"affected"},{"type":"git","introduced":"69fd337a975c7e690dfe49d9cb4fe5ba1e6db44e","fixed":"6a1504dd36cd9a0a69250d61da8bdb17b29f1fe8","status":"affected"},{"type":"git","introduced":"69fd337a975c7e690dfe49d9cb4fe5ba1e6db44e","fixed":"e89f3edffb860a0f54a9ed16deadb7a4a1fa3862","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.0","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.0","status":"unaffected"},{"type":"semver","introduced":"6.0.16","lastAffected":"6.0.*","status":"unaffected"},{"type":"semver","introduced":"6.1.2","lastAffected":"6.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/82b39df5ddb298daaf6dc504032ff7eb027fa106","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6a1504dd36cd9a0a69250d61da8bdb17b29f1fe8","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e89f3edffb860a0f54a9ed16deadb7a4a1fa3862","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-50855","url":"https://www.cve.org/CVERecord?id=CVE-2022-50855","licence":"CVE Terms of Use","modified":"2026-05-11T19:26:25.459Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-50855","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50855","licence":"Public domain","modified":"2026-06-17T05:24:18.200Z"}],"updatedAt":"2026-11-25T22:58:21.381Z","epss":{"score":0.00252,"percentile":0.17789,"date":"2026-12-02T12:00:21.000Z"}}