{"id":"CVE-2026-139185","aliases":["CVE-2026-139185"],"related":[],"kind":"vulnerability","state":"published","title":"net: atlantic: Unregister before clearing RXNFC rules","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: atlantic: Unregister before clearing RXNFC rules\n\naq_pci_remove() clears the driver's RXNFC rule list before unregistering\nthe netdevice.  Until unregister_netdev() returns, ethtool operations can\nstill call aq_get_rxnfc_rule(), aq_get_rxnfc_all_rules(),\naq_add_rxnfc_rule(), or aq_del_rxnfc_rule().  Those paths traverse the\nsame unlocked hlist that aq_clear_rxnfc_all_rules() is mutating and\nfreeing.\n\nThe race is reachable by issuing RXNFC ethtool commands concurrently with\nPCI device removal or driver unbind.  A reader can dereference a node that\nhas just been freed, and two writers can corrupt the list or free the same\nrule more than once, causing KASAN reports, list corruption, or a kernel\npanic.\n\nReverse the removal order: unregister the netdevice first, then clear the\nRXNFC rules.  After unregister_netdev() returns, ethtool can no longer\nenter the driver, while the PCI device is still available for the\nrule-clearing routine to issue hardware commands.\n\nFound during a static-analysis-assisted audit: candidate sites were\nsurfaced by a Coccinelle rule, and the reader/writer paths were\nconfirmed by LLM-assisted (GLM-5.3) code inspection.  The issue was\nnot observed at runtime; it is identified by code inspection only.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: atlantic: Unregister before clearing RXNFC rules\n\naq_pci_remove() clears the driver's RXNFC rule list before unregistering\nthe netdevice.  Until unregister_netdev() returns, ethtool operations can\nstill call aq_get_rxnfc_rule(), aq_get_rxnfc_all_rules(),\naq_add_rxnfc_rule(), or aq_del_rxnfc_rule().  Those paths traverse the\nsame unlocked hlist that aq_clear_rxnfc_all_rules() is mutating and\nfreeing.\n\nThe race is reachable by issuing RXNFC ethtool commands concurrently with\nPCI device removal or driver unbind.  A reader can dereference a node that\nhas just been freed, and two writers can corrupt the list or free the same\nrule more than once, causing KASAN reports, list corruption, or a kernel\npanic.\n\nReverse the removal order: unregister the netdevice first, then clear the\nRXNFC rules.  After unregister_netdev() returns, ethtool can no longer\nenter the driver, while the PCI device is still available for the\nrule-clearing routine to issue hardware commands.\n\nFound during a static-analysis-assisted audit: candidate sites were\nsurfaced by a Coccinelle rule, and the reader/writer paths were\nconfirmed by LLM-assisted (GLM-5.3) code inspection.  The issue was\nnot observed at runtime; it is identified by code inspection only.","source":"cvelist"}],"published":"2026-11-30T13:32:22.023Z","modified":"2026-11-30T14:18:37.777Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"8d0bcb012f57729e44991a45f5ba3266a58de268","fixed":"83cbc002b791a2cca732124de4f88a9ab9c9bfe9","status":"affected"},{"type":"git","introduced":"8d0bcb012f57729e44991a45f5ba3266a58de268","fixed":"9ed684fae0d8d31cc4759d6efd7fb27469277363","status":"affected"},{"type":"git","introduced":"8d0bcb012f57729e44991a45f5ba3266a58de268","fixed":"b4dc5e99b8b04671ce8ccfa5cc44cbd85404f45d","status":"affected"},{"type":"git","introduced":"8d0bcb012f57729e44991a45f5ba3266a58de268","fixed":"a2ba0bf93500c0c489a6908b004ce8e3227d0e7c","status":"affected"},{"type":"git","introduced":"8d0bcb012f57729e44991a45f5ba3266a58de268","fixed":"1baa01b6d4dbbfce9bf19f22c197cf80511dc602","status":"affected"},{"type":"git","introduced":"8d0bcb012f57729e44991a45f5ba3266a58de268","fixed":"21d6837289c149f3af110c97ab54b9e2efc67aca","status":"affected"},{"type":"git","introduced":"8d0bcb012f57729e44991a45f5ba3266a58de268","fixed":"f3c9889dede78991b1cc6339035cdc0bb0e155fc","status":"affected"},{"type":"git","introduced":"8d0bcb012f57729e44991a45f5ba3266a58de268","fixed":"13b364c765e69db1f8446399d8db0b331c23b50c","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.0","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.0","status":"unaffected"},{"type":"semver","introduced":"5.10.275","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.226","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.119","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.65","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.6","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/83cbc002b791a2cca732124de4f88a9ab9c9bfe9","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9ed684fae0d8d31cc4759d6efd7fb27469277363","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b4dc5e99b8b04671ce8ccfa5cc44cbd85404f45d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a2ba0bf93500c0c489a6908b004ce8e3227d0e7c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1baa01b6d4dbbfce9bf19f22c197cf80511dc602","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/21d6837289c149f3af110c97ab54b9e2efc67aca","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f3c9889dede78991b1cc6339035cdc0bb0e155fc","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/13b364c765e69db1f8446399d8db0b331c23b50c","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139185","url":"https://www.cve.org/CVERecord?id=CVE-2026-139185","licence":"CVE Terms of Use","modified":"2026-11-30T13:32:22.023Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139185","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139185","licence":"Public domain","modified":"2026-11-30T14:18:37.777Z"}],"updatedAt":"2026-11-30T14:32:52.650Z","epss":{"score":0.00211,"percentile":0.12068,"date":"2026-12-01T12:00:22.000Z"}}