CVE-2022-50855
Unknown Unknown - Not Provided
Use-After-Free Vulnerability in Linux Kernel BPF LSM Program Handling

Publication date: 2025-12-30

Last updated on: 2025-12-30

Assigner: kernel.org

Description
In the Linux kernel, the following vulnerability has been resolved: bpf: prevent leak of lsm program after failed attach In [0], we added the ability to bpf_prog_attach LSM programs to cgroups, but in our validation to make sure the prog is meant to be attached to BPF_LSM_CGROUP, we return too early if the check fails. This results in lack of decrementing prog's refcnt (through bpf_prog_put) leaving the LSM program alive past the point of the expected lifecycle. This fix allows for the decrement to take place. [0] https://lore.kernel.org/all/[email protected]/
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2025-12-30
Last Modified
2025-12-30
Generated
2026-06-16
AI Q&A
2025-12-30
EPSS Evaluated
2026-06-15
NVD
EUVD
Affected Vendors & Products
Showing 2 associated CPEs
Vendor Product Version / Range
linux kernel *
linux linux_kernel *
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Executive Summary

This vulnerability in the Linux kernel involves the BPF (Berkeley Packet Filter) subsystem where a bug in the validation process for attaching LSM (Linux Security Module) programs to cgroups causes a failure to properly decrement the reference count of the LSM program after a failed attach attempt. As a result, the LSM program remains alive beyond its expected lifecycle, potentially leading to resource leaks.

Impact Analysis

The vulnerability can lead to resource leaks in the Linux kernel by keeping LSM programs alive longer than intended. This may cause increased memory usage or other resource exhaustion issues, potentially affecting system stability or security.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2022-50855. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart