Linux
netfilter: flowtable: publish GC-visible tuple last
In the Linux kernel, the following vulnerability has been resolved: netfilter: flowtable: publish GC-visible tuple last nf_flow_table_iterate() only treats original-direction tuple nodes as owning entries. Publishing the original node first lets GC observe and free a flow while flow_offload_add() is still inserting the reply node. Publish the reply node first and the original node last so GC never sees a partially installed flow. KASAN can trigger slab-use-after-free read and write reports in the flowtable/rhashtable path (rht_deferred_worker, jhash, flow_offload_del, flow_offload_lookup, etc.).
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= ac2a66665e231847cab11b8c8e844ce43207dd2e, < 0a00254585827f1695aa2700114af622ea754cfa
- >= ac2a66665e231847cab11b8c8e844ce43207dd2e, < be345dcbddb4643a54252b954af974b16eda8f91
- >= ac2a66665e231847cab11b8c8e844ce43207dd2e, < 211ee5d998d92a7d548811939c65942d06c146e4
- >= ac2a66665e231847cab11b8c8e844ce43207dd2e, < d37917e7bebe078f3c17e47fd6fc1c9f6e8497b2
- >= ac2a66665e231847cab11b8c8e844ce43207dd2e, < 972fdf7c4f5c282a239c88fea614b056c33dc025
- >= ac2a66665e231847cab11b8c8e844ce43207dd2e, < d9d3050a70efe217e73a0751e55fdae6a7092620
- >= ac2a66665e231847cab11b8c8e844ce43207dd2e, < d16b71231e65cb05daea2b45701fcf09cef041e7
- >= ac2a66665e231847cab11b8c8e844ce43207dd2e, < 2014ac62df9d45bb9a004a043e85df7be09ed780
Fixed in 0a00254585827f1695aa2700114af622ea754cfa, be345dcbddb4643a54252b954af974b16eda8f91, 211ee5d998d92a7d548811939c65942d06c146e4, d37917e7bebe078f3c17e47fd6fc1c9f6e8497b2, 972fdf7c4f5c282a239c88fea614b056c33dc025, d9d3050a70efe217e73a0751e55fdae6a7092620, d16b71231e65cb05daea2b45701fcf09cef041e7, 2014ac62df9d45bb9a004a043e85df7be09ed780
- 4.16
Fixed in 0, 5.10.266, 5.15.217, 6.1.184, 6.6.153, 6.12.105, 6.18.46, 7.1.10, 7.2
Mitigation
Upgrade Linux to 0a00254585827f1695aa2700114af622ea754cfa or be345dcbddb4643a54252b954af974b16eda8f91 or 211ee5d998d92a7d548811939c65942d06c146e4 or d37917e7bebe078f3c17e47fd6fc1c9f6e8497b2 or 972fdf7c4f5c282a239c88fea614b056c33dc025 or d9d3050a70efe217e73a0751e55fdae6a7092620 or d16b71231e65cb05daea2b45701fcf09cef041e7 or 2014ac62df9d45bb9a004a043e85df7be09ed780 or later.
Upgrade Linux to 0 or 5.10.266 or 5.15.217 or 6.1.184 or 6.6.153 or 6.12.105 or 6.18.46 or 7.1.10 or 7.2 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.