{"id":"CVE-2026-139185","state":"PUBLISHED","title":"net: atlantic: Unregister before clearing RXNFC rules","description":"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.","publishedAt":"2026-11-30T13:32:22.023Z","updatedAt":"2026-11-30T13:32:22.023Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"8d0bcb012f57729e44991a45f5ba3266a58de268","status":"affected","lessThan":"83cbc002b791a2cca732124de4f88a9ab9c9bfe9","versionType":"git"},{"version":"8d0bcb012f57729e44991a45f5ba3266a58de268","status":"affected","lessThan":"9ed684fae0d8d31cc4759d6efd7fb27469277363","versionType":"git"},{"version":"8d0bcb012f57729e44991a45f5ba3266a58de268","status":"affected","lessThan":"b4dc5e99b8b04671ce8ccfa5cc44cbd85404f45d","versionType":"git"},{"version":"8d0bcb012f57729e44991a45f5ba3266a58de268","status":"affected","lessThan":"a2ba0bf93500c0c489a6908b004ce8e3227d0e7c","versionType":"git"},{"version":"8d0bcb012f57729e44991a45f5ba3266a58de268","status":"affected","lessThan":"1baa01b6d4dbbfce9bf19f22c197cf80511dc602","versionType":"git"},{"version":"8d0bcb012f57729e44991a45f5ba3266a58de268","status":"affected","lessThan":"21d6837289c149f3af110c97ab54b9e2efc67aca","versionType":"git"},{"version":"8d0bcb012f57729e44991a45f5ba3266a58de268","status":"affected","lessThan":"f3c9889dede78991b1cc6339035cdc0bb0e155fc","versionType":"git"},{"version":"8d0bcb012f57729e44991a45f5ba3266a58de268","status":"affected","lessThan":"13b364c765e69db1f8446399d8db0b331c23b50c","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.0","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.0","versionType":"semver"},{"version":"5.10.275","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.226","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.193","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c"]}],"references":["https://git.kernel.org/stable/c/83cbc002b791a2cca732124de4f88a9ab9c9bfe9","https://git.kernel.org/stable/c/9ed684fae0d8d31cc4759d6efd7fb27469277363","https://git.kernel.org/stable/c/b4dc5e99b8b04671ce8ccfa5cc44cbd85404f45d","https://git.kernel.org/stable/c/a2ba0bf93500c0c489a6908b004ce8e3227d0e7c","https://git.kernel.org/stable/c/1baa01b6d4dbbfce9bf19f22c197cf80511dc602","https://git.kernel.org/stable/c/21d6837289c149f3af110c97ab54b9e2efc67aca","https://git.kernel.org/stable/c/f3c9889dede78991b1cc6339035cdc0bb0e155fc","https://git.kernel.org/stable/c/13b364c765e69db1f8446399d8db0b331c23b50c"],"weaknesses":[],"ingestedAt":"2026-11-30T13:44:05.999Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139185.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139185","state":"PUBLISHED","datePublished":"2026-11-30T13:32:22.023Z","dateUpdated":"2026-11-30T13:32:22.023Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.919Z"},"containers":{"cna":{"title":"net: atlantic: Unregister before clearing RXNFC rules","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"8d0bcb012f57729e44991a45f5ba3266a58de268","status":"affected","lessThan":"83cbc002b791a2cca732124de4f88a9ab9c9bfe9","versionType":"git"},{"version":"8d0bcb012f57729e44991a45f5ba3266a58de268","status":"affected","lessThan":"9ed684fae0d8d31cc4759d6efd7fb27469277363","versionType":"git"},{"version":"8d0bcb012f57729e44991a45f5ba3266a58de268","status":"affected","lessThan":"b4dc5e99b8b04671ce8ccfa5cc44cbd85404f45d","versionType":"git"},{"version":"8d0bcb012f57729e44991a45f5ba3266a58de268","status":"affected","lessThan":"a2ba0bf93500c0c489a6908b004ce8e3227d0e7c","versionType":"git"},{"version":"8d0bcb012f57729e44991a45f5ba3266a58de268","status":"affected","lessThan":"1baa01b6d4dbbfce9bf19f22c197cf80511dc602","versionType":"git"},{"version":"8d0bcb012f57729e44991a45f5ba3266a58de268","status":"affected","lessThan":"21d6837289c149f3af110c97ab54b9e2efc67aca","versionType":"git"},{"version":"8d0bcb012f57729e44991a45f5ba3266a58de268","status":"affected","lessThan":"f3c9889dede78991b1cc6339035cdc0bb0e155fc","versionType":"git"},{"version":"8d0bcb012f57729e44991a45f5ba3266a58de268","status":"affected","lessThan":"13b364c765e69db1f8446399d8db0b331c23b50c","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.0","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.0","versionType":"semver"},{"version":"5.10.275","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.226","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.193","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/83cbc002b791a2cca732124de4f88a9ab9c9bfe9"},{"url":"https://git.kernel.org/stable/c/9ed684fae0d8d31cc4759d6efd7fb27469277363"},{"url":"https://git.kernel.org/stable/c/b4dc5e99b8b04671ce8ccfa5cc44cbd85404f45d"},{"url":"https://git.kernel.org/stable/c/a2ba0bf93500c0c489a6908b004ce8e3227d0e7c"},{"url":"https://git.kernel.org/stable/c/1baa01b6d4dbbfce9bf19f22c197cf80511dc602"},{"url":"https://git.kernel.org/stable/c/21d6837289c149f3af110c97ab54b9e2efc67aca"},{"url":"https://git.kernel.org/stable/c/f3c9889dede78991b1cc6339035cdc0bb0e155fc"},{"url":"https://git.kernel.org/stable/c/13b364c765e69db1f8446399d8db0b331c23b50c"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:32:22.023Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.0","versionEndExcluding":"5.10.275"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.0","versionEndExcluding":"5.15.226"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.0","versionEndExcluding":"6.1.193"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.0","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.0","versionEndExcluding":"6.12.119"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.0","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.0","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.0","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}