Linux: netfilter: nfnetlink_log: wait for rcu grace period before freeing pernet state
What fixes it
- 5570d6c8b320dbcc602617ee08c27ce752fed65aLinuxCVE List
- 3b9aa62d78ce80de47af2db472ff452398755213LinuxCVE List
- 33d1469b0124cc0baaea7a2032123b77a81e0940LinuxCVE List
A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.
Description
In the Linux kernel, the following vulnerability has been resolved:
netfilter: nfnetlink_log: wait for rcu grace period before freeing pernet state
sashiko reports: "nfnl_log_net_exit() calls nf_log_unset(), which clears the logger pointer without an RCU grace period. Immediately after, ops_free_list() frees the per-net state while concurrent packets might still be executing nf_log_packet() under rcu_read_lock()."
Clear the pointer via .pre_exit to make sure rcu readers have completed before pernet storage is free'd. The change in nf_log_syslog.c is only done for consistency: it doesn't use pernet data.
Text from CVE List
Affected versions 14
- Linuxaffected: c83fa19603bdaeef17b815713dbbe3230c8a34ee before ba2e246aa294f9acd86194ea87fb6834ed0a37acCVE List
- Linuxaffected: c83fa19603bdaeef17b815713dbbe3230c8a34ee before 5570d6c8b320dbcc602617ee08c27ce752fed65aCVE List
- Linuxaffected: c83fa19603bdaeef17b815713dbbe3230c8a34ee before 3b9aa62d78ce80de47af2db472ff452398755213CVE List
- Linuxaffected: c83fa19603bdaeef17b815713dbbe3230c8a34ee before f4461654374576e9d5d0245fd534c46ad8509051CVE List
- Linuxaffected: c83fa19603bdaeef17b815713dbbe3230c8a34ee before dc20050b6b12ca58066715d088e1a537535d938dCVE List
- Linuxaffected: c83fa19603bdaeef17b815713dbbe3230c8a34ee before 33d1469b0124cc0baaea7a2032123b77a81e0940CVE List
- Linuxaffected: 4.12CVE List
- Linuxunaffected: all versions before 4.12CVE List
- Linuxunaffected: 5.15.222 through 5.15.*CVE List
- Linuxunaffected: 6.1.189 through 6.1.*CVE List
- Linuxunaffected: 6.6.158 through 6.6.*CVE List
- Linuxunaffected: 6.12.111 through 6.12.*CVE List
- Linuxunaffected: 6.18.53 through 6.18.*CVE List
- Linuxunaffected: 7.2CVE List
References 6
- git.kernel.org/stable/c/ba2e246aa294f9acd86194ea87fb6834ed0a37acReferencevia CVE List
- git.kernel.org/stable/c/5570d6c8b320dbcc602617ee08c27ce752fed65aReferencevia CVE List
- git.kernel.org/stable/c/3b9aa62d78ce80de47af2db472ff452398755213Referencevia CVE List
- git.kernel.org/stable/c/f4461654374576e9d5d0245fd534c46ad8509051Referencevia CVE List
- git.kernel.org/stable/c/dc20050b6b12ca58066715d088e1a537535d938dReferencevia CVE List
- git.kernel.org/stable/c/33d1469b0124cc0baaea7a2032123b77a81e0940Referencevia CVE List