CVE-2026-139185

net: atlantic: Unregister before clearing RXNFC rules

Published Nov 30, 2026 CVSS n/a EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

net: atlantic: Unregister before clearing RXNFC rules

aq_pci_remove() clears the driver's RXNFC rule list before unregistering
the netdevice. Until unregister_netdev() returns, ethtool operations can
still call aq_get_rxnfc_rule(), aq_get_rxnfc_all_rules(),
aq_add_rxnfc_rule(), or aq_del_rxnfc_rule(). Those paths traverse the
same unlocked hlist that aq_clear_rxnfc_all_rules() is mutating and
freeing.

The race is reachable by issuing RXNFC ethtool commands concurrently with
PCI device removal or driver unbind. A reader can dereference a node that
has just been freed, and two writers can corrupt the list or free the same
rule more than once, causing KASAN reports, list corruption, or a kernel
panic.

Reverse the removal order: unregister the netdevice first, then clear the
RXNFC rules. After unregister_netdev() returns, ethtool can no longer
enter the driver, while the PCI device is still available for the
rule-clearing routine to issue hardware commands.

Found during a static-analysis-assisted audit: candidate sites were
surfaced by a Coccinelle rule, and the reader/writer paths were
confirmed by LLM-assisted (GLM-5.3) code inspection. The issue was
not observed at runtime; it is identified by code inspection only.

Analysis

AI-generated

Technical impact

The Atlantic network driver in the Linux kernel contains a race condition between ethtool RXNFC rule handling and device removal. When the PCI device is detached or the driver is unbound, the driver clears its RXNFC rule list while ethtool operations may still be in flight. Both paths traverse the same unlocked hlist, so a reader may dereference a node that has just been freed and two writers can corrupt the list or free the same rule twice. The result is KASAN reports and kernel instability that often manifests as a kernel panic, list corruption, or a potential use‑after‑free. The flaw is a classic use‑after‑free race that could allow a local attacker to read or write kernel memory or to deny service by causing the kernel to crash.

Affected Systems

The flaw exists in any Linux kernel that includes the Atlantic driver code. No particular version numbers are listed; all distributions that ship the stock Linux kernel with Atlantic support are potentially affected until the fix is incorporated. Version information from the CNA is absent, so administrators should confirm whether their kernel contains the affected code path.

Risk and Exploitability

No CVSS or EPSS score is available and the vulnerability is not in the CISA KEV catalog. The primary risk is a local escalation or denial‑of‑service that an attacker with ethtool privileges can trigger by issuing concurrent RXNFC commands during driver unload. The race is non‑deterministic, making exploitation difficult to rely upon, but the impact of a successful trigger is catastrophic kernel instability, potentially leading to privilege escalation if the attacker controls kernel crash handling. Remote exploitation would require gaining such privileged access first.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to a kernel version that includes the commit which unregisters the netdevice before clearing RXNFC rules (i.e., apply the latest patch set for the Atlantic driver).
  • If an immediate upgrade is impossible, disable or restrict ethtool RXNFC operations while performing driver unbind or device removal, or limit ethtool access to trusted users only.
  • Continuously monitor kernel logs for KASAN or Oops messages to detect attempts to exploit the race and be prepared to reboot if a crash occurs.

Generated by OpenCVE AI on December 1, 2026 at 21:25 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-416
Type Values Removed Values Added
First Time appeared Linux linux
Vendors & Products Linux linux
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: net: atlantic: Unregister before clearing RXNFC rules aq_pci_remove() clears the driver's RXNFC rule list before unregistering the netdevice. Until unregister_netdev() returns, ethtool operations can still call aq_get_rxnfc_rule(), aq_get_rxnfc_all_rules(), aq_add_rxnfc_rule(), or aq_del_rxnfc_rule(). Those paths traverse the same unlocked hlist that aq_clear_rxnfc_all_rules() is mutating and freeing. The race is reachable by issuing RXNFC ethtool commands concurrently with PCI device removal or driver unbind. A reader can dereference a node that has just been freed, and two writers can corrupt the list or free the same rule more than once, causing KASAN reports, list corruption, or a kernel panic. Reverse the removal order: unregister the netdevice first, then clear the RXNFC rules. After unregister_netdev() returns, ethtool can no longer enter the driver, while the PCI device is still available for the rule-clearing routine to issue hardware commands. Found during a static-analysis-assisted audit: candidate sites were surfaced by a Coccinelle rule, and the reader/writer paths were confirmed by LLM-assisted (GLM-5.3) code inspection. The issue was not observed at runtime; it is identified by code inspection only.
Title net: atlantic: Unregister before clearing RXNFC rules
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:32 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:18 PM
Modified
Nov 30, 2026, 2:18 PM