
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-31578 is a race condition vulnerability in the Linux kernel's media: as102 USB driver that leads to use-after-free (UAF) and double-free (DFB) memory corruption. The flaw exists in the as102_usb_probe() function, where memory allocated for the as102_dev_t structure can be freed while open file descriptors still reference it. Affected Linux kernel versions include those before 6.6.136, 6.7–6.12.x before 6.12.83, 6.13–6.18.x before 6.18.24, 6.19.x before 6.19.14, and 7.0.x before 7.0.1. The vulnerability was published on April 24, 2026, with patches available shortly after. It carries a CVSS v3.1 base score of 7.8 (High) (Red Hat Advisory, Red Hat Bugzilla).
The root cause is a race condition (CWE-364) combined with use-after-free (CWE-416) in the as102_usb_probe() error path. When usb_register_dev() succeeds and a userspace process opens the device file descriptor before usb_deregister_dev() is called, the driver immediately frees the as102_dev_t structure via kfree(). When the userspace process later closes its file descriptor, as102_release() → as102_usb_release() is invoked, accessing or freeing the already-freed memory — resulting in UAF and double-free conditions. The attack vector is local, requires only low privileges, and no user interaction, making it exploitable by any user with access to the as102 USB device node (Red Hat Bugzilla, Red Hat Advisory).
Successful exploitation can result in kernel memory corruption, kernel panic (denial of service), or potential privilege escalation to root. The vulnerability affects confidentiality, integrity, and availability of the system, as kernel-level memory corruption can expose sensitive kernel data, allow arbitrary code execution in kernel context, or crash the system entirely. The scope is limited to the local system, but privilege escalation could enable lateral movement within a compromised environment (Red Hat Advisory).
There is no known public proof-of-concept exploit and no evidence of in-the-wild exploitation at this time. The vulnerability has an EPSS score of approximately 0.018% (0.000180), indicating a low probability of exploitation in the near term. The CVE is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation requires local access and the ability to open the as102 USB device file while racing the device deregistration process, which limits the practical attack surface (Red Hat Advisory).
as102 kernel module loaded./dev/swradio0 or similar) created by usb_register_dev().sys_open() on the device node immediately after usb_register_dev() succeeds but before usb_deregister_dev() is called during an error path in as102_usb_probe().as102_usb_probe() to execute usb_deregister_dev() followed by kfree(as102_dev_t), freeing the device structure while the file descriptor remains open.as102_release() → as102_usb_release() to access or free the already-freed as102_dev_t memory, resulting in kernel memory corruption./var/log/kern.log or dmesg referencing as102_release, as102_usb_release, or memory corruption in the media/usb/as102 driver path.as102_usb_probe() or as102_usb_release().usb_register_dev()) on systems where exploitation is suspected; check udevadm monitor for rapid device registration/deregistration events.Upgrade the Linux kernel to a patched version: 6.6.136 or later, 6.12.83 or later (for 6.7–6.12.x), 6.18.24 or later (for 6.13–6.18.x), 6.19.14 or later (for 6.19.x), or 7.0.1 or later (for 7.0.x). The fix defers kfree(as102_dev_t) to the .release() callback, ensuring memory is not freed until all open file descriptors are closed. As a workaround, restrict access to as102 USB device nodes to trusted users only (e.g., via udev rules or file permissions), and avoid exposing systems with as102 USB devices to untrusted local users (Red Hat Advisory, Red Hat Bugzilla).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."