CVE-2026-139294
Description
A flaw was found in the Linux kernel's BPF (Berkeley Packet Filter) subsystem. When executing test runs for socket lookup programs, the kernel accesses socket data outside of its Read-Copy Update (RCU) protected critical section without holding a valid reference. A local attacker could exploit this race condition by closing the socket concurrently, triggering a use-after-free condition. This flaw primarily allows an attacker to cause a Denial of Service (DoS) through a kernel crash or potentially corrupt memory.
Statement
This vulnerability is rated as Moderate severity because triggering the flaw requires local execution with elevated administrative capabilities (such as CAP_BPF or CAP_SYS_ADMIN) to run BPF program test routines, restricting exposure to privileged users. A timing window during BPF socket lookup test operations allows an access to a socket structure after it has been freed outside the RCU read-side critical section. On standard Red Hat Enterprise Linux configurations, successful exploitation leads to a kernel crash resulting in a denial of service, without impacting confidentiality or integrity.
Understanding the Weakness (CWE)
Confidentiality
Technical Impact: Read Memory
If the expired pointer is used in a read operation, an attacker might be able to control data read in by the application.
Availability
Technical Impact: DoS: Crash, Exit, or Restart
If the expired pointer references a memory location that is not accessible to the product, or points to a location that is "malformed" (such as NULL) or larger than expected by a read or write operation, then a crash may occur.
Integrity,Confidentiality,Availability
Technical Impact: Execute Unauthorized Code or Commands
If the expired pointer is used in a function call, or points to unexpected data in a write operation, then code execution may be possible.
Frequently Asked Questions
Not sure what something means? Check out our Security Glossary.
Want to get errata notifications? Sign up here.