CVE-2022-50855
Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
30/12/2025
Last modified:
31/12/2025
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
bpf: prevent leak of lsm program after failed attach<br />
<br />
In [0], we added the ability to bpf_prog_attach LSM programs to cgroups,<br />
but in our validation to make sure the prog is meant to be attached to<br />
BPF_LSM_CGROUP, we return too early if the check fails. This results in<br />
lack of decrementing prog&#39;s refcnt (through bpf_prog_put)<br />
leaving the LSM program alive past the point of the expected lifecycle.<br />
This fix allows for the decrement to take place.<br />
<br />
[0] https://lore.kernel.org/all/20220628174314.1216643-4-sdf@google.com/



