CVE-2026-98341

wifi: cfg80211: don't free driver-owned scan requests

Published Oct 6, 2026 CVSS 3.1 · 7.8 High EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

wifi: cfg80211: don't free driver-owned scan requests

When an interface goes down while a scan is running, cfg80211 completes
the scan towards userspace and frees the scan request. However, the
driver can be convinced that it owns the request, since the cancellation
is (intended to be) asynchronous.

The WARN_ON() in the netdev notifier was meant to catch this, but it's
not actually avoidable, so it triggers and we get a UAF in scan_done().

There doesn't seem to be a great way around it, so just track that the
driver is still convinced it owns the request, and then just free it on
completion if it was already cancelled. Also remove the warnings since
they can trigger in the intended architecture.

Analysis

AI-generated

Technical impact

This vulnerability is a use‑after‑free in the Linux kernel’s cfg80211 subsystem. When a wireless interface is brought down while a scan is in progress, the kernel prematurely frees the scan request that the driver still believes it owns. The resulting outstanding reference in cfg80211::scan_done() can corrupt kernel memory, cause a crash, or, if exploited, elevate privileges to the kernel level.

Affected Systems

The flaw exists in the upstream Linux kernel and applies to any distribution that has not incorporated the patch that removes the premature free. The affected component is the cfg80211 driver interface. Kernels prior to the commit cf6da29d17994865f73ca70976495ea856909c63 are vulnerable; distributions using those kernels must upgrade to a patched release.

Risk and Exploitability

With a CVSS score of 7.8 the severity is moderate, but the EPSS is less than 1 %, indicating a low likelihood of exploitation in the wild. The vulnerability is not listed in the CISA KEV catalog. An attacker would need to control a malicious wireless driver or trigger a scan‑interface down sequence; the attack surface is limited, but the potential impact includes kernel memory corruption and privilege escalation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Linux kernel to a release that contains the commit cf6da29d17994865f73ca70976495ea856909c63 which fixes the scan‑free logic.
  • While updating is pending, avoid bringing Wi‑Fi interfaces down during active scans; optionally enforce a delay between scans and interface shutdown or configure network manager to disable all wireless activity before deactivation.
  • Configure kernel log monitoring for cfg80211 WARN_ON or Oops events, and notify administrators when detected to catch any residual issues early.

Generated by OpenCVE AI on October 11, 2026 at 05:24 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-9019-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9020-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9160-1 Linux kernel (Azure) vulnerabilities
History
Type Values Removed Values Added
Weaknesses CWE-758
Type Values Removed Values Added
Weaknesses CWE-758
Type Values Removed Values Added
Weaknesses CWE-758
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
Weaknesses CWE-758
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: wifi: cfg80211: don't free driver-owned scan requests When an interface goes down while a scan is running, cfg80211 completes the scan towards userspace and frees the scan request. However, the driver can be convinced that it owns the request, since the cancellation is (intended to be) asynchronous. The WARN_ON() in the netdev notifier was meant to catch this, but it's not actually avoidable, so it triggers and we get a UAF in scan_done(). There doesn't seem to be a great way around it, so just track that the driver is still convinced it owns the request, and then just free it on completion if it was already cancelled. Also remove the warnings since they can trigger in the intended architecture.
Title wifi: cfg80211: don't free driver-owned scan requests
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-825

    Expired Pointer Dereference

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Oct 19, 2026, 9:17 AM
Reserved
Sep 25, 2026, 10:25 AM
Status
Received
Published
Oct 6, 2026, 9:18 AM
Modified
Oct 19, 2026, 10:18 AM
Severity
Moderate
Public date
Oct 6, 2026, 12:00 AM