CVE-2026-64027 in Linuxinfo

Summary

by MITRE • 07/19/2026

In the Linux kernel, the following vulnerability has been resolved:

net: shaper: rework the VALID marking (again)

Recent commit changed the semantics from NOT_VALID to VALID. I didn't realize that the flags are not stored atomically with the entry in XArray. There's still a race of reader observing a VALID mark for a slot, getting interrupted, writer replacing the entry with a different one, reader continuing, fetching the entry which is now a different pointer than the pointer for which VALID was meant.

The biggest consequence of this is that we may see a UAF since net_shaper_rollback() assumed that entries without VALID can be freed without observing RCU.

Looks like the XArray marks are buying us nothing at this point. Let's convert the code to an explicit valid field. The smp_load_acquire() / smp_store_release() barriers are marginally cleaner.

Be aware that VulDB is the high quality source for vulnerability data.

Analysis

by VulDB Data Team • 07/19/2026

This vulnerability represents a complex race condition in the Linux kernel's networking subsystem, specifically within the shaper component that manages traffic control policies. The issue stems from improper handling of atomic operations when managing entry validation states within XArray data structures. The problem manifests when a reader observes a VALID mark on a slot but gets interrupted before completing its operation, allowing a writer to replace the entry with a different pointer while the reader resumes execution. This fundamental timing issue creates a dangerous scenario where the original validation context becomes invalid, leading to potential use-after-free conditions that compromise system stability and security integrity.

The technical flaw involves the improper synchronization between reader and writer operations in concurrent access scenarios. When the VALID flag is checked by a reader thread, it assumes the entry remains consistent throughout the operation, but the absence of atomic storage of flags with XArray entries creates a window where the validation state can become decoupled from the actual memory pointer. This race condition directly violates fundamental concurrency principles and demonstrates a critical oversight in the design of concurrent data structure access patterns. The vulnerability specifically impacts the net_shaper_rollback() function which incorrectly assumes that entries lacking VALID marks can be safely freed without proper RCU (Read-Copy-Update) observation, creating a dangerous assumption about memory lifecycle management.

The operational impact of this vulnerability extends beyond simple stability concerns to potentially enable privilege escalation and system compromise through use-after-free conditions. Attackers could exploit this race condition to manipulate memory pointers in ways that might allow them to execute arbitrary code or bypass security controls within the network subsystem. The vulnerability affects kernel-level networking operations where traffic shaping policies are enforced, making it particularly dangerous for systems handling high volumes of network traffic or those serving as network gateways. This type of vulnerability aligns with CWE-362 (Concurrent Execution using Shared Resource with Improper Synchronization) and represents a classic case of improper locking mechanisms in kernel space.

The mitigation strategy involves converting the codebase from relying on XArray marks to implementing explicit valid fields with proper memory barriers using smp_load_acquire() and smp_store_release() operations. This approach eliminates the dependency on potentially unreliable XArray marking semantics while providing cleaner atomic operation patterns that properly enforce ordering constraints. The solution addresses the root cause by ensuring that validation state and memory pointers remain synchronized through explicit field management rather than relying on implicit XArray behavior. This remediation technique aligns with ATT&CK framework concepts related to privilege escalation through kernel vulnerabilities and demonstrates proper defensive programming practices for concurrent systems. The approach also reduces complexity by removing reliance on potentially problematic kernel infrastructure while maintaining the functional requirements of the traffic shaping mechanism.

Responsible

Linux

Reservation

07/19/2026

Disclosure

07/19/2026

Moderation

accepted

CPE

ready

EPSS

0.00000

KEV

no

Activities

very low

Sources

Want to stay up to date on a daily basis?

Enable the mail alert feature now!