{"id":"CVE-2026-68332","state":"PUBLISHED","title":"net: airoha: Fix potential use-after-free in airoha_ppe_deinit()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: airoha: Fix potential use-after-free in airoha_ppe_deinit()\n\nairoha_ppe_deinit() replaces the NPU pointer with NULL via\nrcu_replace_pointer() but does not wait for existing RCU readers\nto exit before calling ppe_deinit() and airoha_npu_put(). This can\ncause a use-after-free if a reader in an RCU read-side critical\nsection still holds a reference to the NPU when it is freed.\n\nThe init path (airoha_ppe_init) already calls synchronize_rcu()\nafter rcu_assign_pointer(), but the deinit path introduced in\ncommit 6abcf751bc08 (\"net: airoha: Fix schedule while atomic in\nairoha_ppe_deinit()\") omitted the matching barrier when switching\nfrom rcu_read_lock()/rcu_dereference() to rcu_replace_pointer().\n\nAdd synchronize_rcu() before ppe_deinit() to ensure all existing\nRCU readers have completed before the NPU resources are released.","publishedAt":"2026-08-10T12:03:08.525Z","updatedAt":"2026-08-17T05:03:30.927Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"72f93dc6d1a6b157e0c3d247085c74935893cca0","status":"affected","lessThan":"46e3bed4b071095ecc9384a7b349e1908728531f","versionType":"git"},{"version":"6abcf751bc084804a9e5b3051442e8a2ce67f48a","status":"affected","lessThan":"ad28c4f9e0eae4993cb3fde3e7cea330acd8b97c","versionType":"git"},{"version":"6abcf751bc084804a9e5b3051442e8a2ce67f48a","status":"affected","lessThan":"2484568a335cd7bda951c75b3a7d95ea36161ae7","versionType":"git"},{"version":"6.18.6","status":"affected","lessThan":"6.18.42","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/airoha/airoha_ppe.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.19","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.19","versionType":"semver"},{"version":"6.18.42","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.1.6","status":"unaffected","lessThanOrEqual":"7.1.*","versionType":"semver"},{"version":"7.2","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/airoha/airoha_ppe.c"]}],"references":["https://git.kernel.org/stable/c/46e3bed4b071095ecc9384a7b349e1908728531f","https://git.kernel.org/stable/c/ad28c4f9e0eae4993cb3fde3e7cea330acd8b97c","https://git.kernel.org/stable/c/2484568a335cd7bda951c75b3a7d95ea36161ae7"],"weaknesses":[],"ingestedAt":"2026-10-29T20:12:49.727Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/68xxx/CVE-2026-68332.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-68332","state":"PUBLISHED","datePublished":"2026-08-10T12:03:08.525Z","dateUpdated":"2026-08-17T05:03:30.927Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-07-30T09:28:09.383Z"},"containers":{"cna":{"title":"net: airoha: Fix potential use-after-free in airoha_ppe_deinit()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: airoha: Fix potential use-after-free in airoha_ppe_deinit()\n\nairoha_ppe_deinit() replaces the NPU pointer with NULL via\nrcu_replace_pointer() but does not wait for existing RCU readers\nto exit before calling ppe_deinit() and airoha_npu_put(). This can\ncause a use-after-free if a reader in an RCU read-side critical\nsection still holds a reference to the NPU when it is freed.\n\nThe init path (airoha_ppe_init) already calls synchronize_rcu()\nafter rcu_assign_pointer(), but the deinit path introduced in\ncommit 6abcf751bc08 (\"net: airoha: Fix schedule while atomic in\nairoha_ppe_deinit()\") omitted the matching barrier when switching\nfrom rcu_read_lock()/rcu_dereference() to rcu_replace_pointer().\n\nAdd synchronize_rcu() before ppe_deinit() to ensure all existing\nRCU readers have completed before the NPU resources are released."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"72f93dc6d1a6b157e0c3d247085c74935893cca0","status":"affected","lessThan":"46e3bed4b071095ecc9384a7b349e1908728531f","versionType":"git"},{"version":"6abcf751bc084804a9e5b3051442e8a2ce67f48a","status":"affected","lessThan":"ad28c4f9e0eae4993cb3fde3e7cea330acd8b97c","versionType":"git"},{"version":"6abcf751bc084804a9e5b3051442e8a2ce67f48a","status":"affected","lessThan":"2484568a335cd7bda951c75b3a7d95ea36161ae7","versionType":"git"},{"version":"6.18.6","status":"affected","lessThan":"6.18.42","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/airoha/airoha_ppe.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.19","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.19","versionType":"semver"},{"version":"6.18.42","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.1.6","status":"unaffected","lessThanOrEqual":"7.1.*","versionType":"semver"},{"version":"7.2","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/airoha/airoha_ppe.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/46e3bed4b071095ecc9384a7b349e1908728531f"},{"url":"https://git.kernel.org/stable/c/ad28c4f9e0eae4993cb3fde3e7cea330acd8b97c"},{"url":"https://git.kernel.org/stable/c/2484568a335cd7bda951c75b3a7d95ea36161ae7"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-17T05:03:30.927Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.18.6","versionEndExcluding":"6.18.42"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.19","versionEndExcluding":"7.1.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.19","versionEndExcluding":"7.2"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}