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.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
c83fa19603bdaeef17b815713dbbe3230c8a34ee to < ba2e246aa294f9acd86194ea87fb6834ed0a37acaffectedc83fa19603bdaeef17b815713dbbe3230c8a34ee to < 5570d6c8b320dbcc602617ee08c27ce752fed65aaffectedc83fa19603bdaeef17b815713dbbe3230c8a34ee to < 3b9aa62d78ce80de47af2db472ff452398755213affectedc83fa19603bdaeef17b815713dbbe3230c8a34ee to < f4461654374576e9d5d0245fd534c46ad8509051affectedc83fa19603bdaeef17b815713dbbe3230c8a34ee to < dc20050b6b12ca58066715d088e1a537535d938daffectedc83fa19603bdaeef17b815713dbbe3230c8a34ee to < 33d1469b0124cc0baaea7a2032123b77a81e0940affected
Linux Linux
Default version status: affected
4.12affected0 to < 4.12unaffected5.15.222 to ≤ 5.15.*unaffected6.1.189 to ≤ 6.1.*unaffected6.6.158 to ≤ 6.6.*unaffected6.12.111 to ≤ 6.12.*unaffected6.18.53 to ≤ 6.18.*unaffected7.2 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/ba2e246aa294f9acd86194ea87fb6834ed0a37ac ↗
- https://git.kernel.org/stable/c/5570d6c8b320dbcc602617ee08c27ce752fed65a ↗
- https://git.kernel.org/stable/c/3b9aa62d78ce80de47af2db472ff452398755213 ↗
- https://git.kernel.org/stable/c/f4461654374576e9d5d0245fd534c46ad8509051 ↗
- https://git.kernel.org/stable/c/dc20050b6b12ca58066715d088e1a537535d938d ↗
- https://git.kernel.org/stable/c/33d1469b0124cc0baaea7a2032123b77a81e0940 ↗