Linux
netfilter: nf_tables: add hook transactions for device deletions
In the Linux kernel, the following vulnerability has been resolved: netfilter: nf_tables: add hook transactions for device deletions Restore the flag that indicates that the hook is going away, ie. NFT_HOOK_REMOVE, but add a new transaction object to track deletion of hooks without altering the basechain/flowtable hook_list during the preparation phase. The existing approach that moves the hook from the basechain/flowtable hook_list to transaction hook_list breaks netlink dump path readers of this RCU-protected list. It should be possible use an array for nft_trans_hook to store the deleted hooks to compact the representation but I am not expecting many hook object, specially now that wildcard support for devices is in place. Note that the nft_trans_chain_hooks() list contains a list of struct nft_trans_hook objects for DELCHAIN and DELFLOWTABLE commands, while this list stores struct nft_hook objects for NEWCHAIN and NEWFLOWTABLE. Note that new commands can be updated to use nft_trans_hook for consistency. This patch also adapts the event notification path to deal with the list of hook transactions.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= b6d9014a3335194590abdd2a2471ef5147a67645, < 768daa9f4276be4007e88dea61a378c8582ba008
- >= b6d9014a3335194590abdd2a2471ef5147a67645, < 4e69bfb32b2db323d9205fdb30e284481b37817c
- >= b6d9014a3335194590abdd2a2471ef5147a67645, < 10f79dbd7719d1da9f5884d13060322d8729f091
- 7a248f9c74f9f62799718c12efd9e9e391d60b6f
- f275989ad04159dbfc62cefb65ba9c5ba1d7c34f
- 62d91062058b42bf70b2c3446aec397bb0ce15ee
- 99180dec5ae582227219d1fdd0dd5ccf53ec7491
- >= 5.10.122, < 5.11
- >= 5.15.47, < 5.16
- >= 5.17.15, < 5.18
- >= 5.18.4, < 5.19
Fixed in 768daa9f4276be4007e88dea61a378c8582ba008, 4e69bfb32b2db323d9205fdb30e284481b37817c, 10f79dbd7719d1da9f5884d13060322d8729f091, 5.11, 5.16, 5.18, 5.19
- 5.19
Fixed in 0, 6.18.57, 7.0.10, 7.1
Mitigation
Upgrade Linux to 768daa9f4276be4007e88dea61a378c8582ba008 or 4e69bfb32b2db323d9205fdb30e284481b37817c or 10f79dbd7719d1da9f5884d13060322d8729f091 or 5.11 or 5.16 or 5.18 or 5.19 or later.
Upgrade Linux to 0 or 6.18.57 or 7.0.10 or 7.1 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.