Bugzilla – Bug 1224097
VUL-0: CVE-2024-27394: kernel: tcp: Fix Use-After-Free in tcp_ao_connect_init
Last modified: 2024-06-10 12:52:16 UTC
Description =========== In the Linux kernel, the following vulnerability has been resolved: tcp: Fix Use-After-Free in tcp_ao_connect_init Since call_rcu, which is called in the hlist_for_each_entry_rcu traversal of tcp_ao_connect_init, is not part of the RCU read critical section, it is possible that the RCU grace period will pass during the traversal and the key will be free. To prevent this, it should be changed to hlist_for_each_entry_safe. The Linux kernel CVE team has assigned CVE-2024-27394 to this issue. Affected and fixed versions =========================== Issue introduced in 6.7 with commit 7c2ffaf21bd6 and fixed in 6.8.9 with commit ca4fb6c6764b Issue introduced in 6.7 with commit 7c2ffaf21bd6 and fixed in 6.9-rc6 with commit 80e679b352c3 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2024-27394 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: net/ipv4/tcp_ao.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/ca4fb6c6764b3f75b4f5aa81db1536291897ff7f https://git.kernel.org/stable/c/80e679b352c3ce5158f3f778cfb77eb767e586fb References: http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2024-27394 https://git.kernel.org/pub/scm/linux/security/vulns.git/plain/cve/published/2024/CVE-2024-27394.mbox https://git.kernel.org/stable/c/ca4fb6c6764b3f75b4f5aa81db1536291897ff7f https://git.kernel.org/stable/c/80e679b352c3ce5158f3f778cfb77eb767e586fb
The issue was introduced in 6.7 and never backported to our kernels. It seems we don't need to do anything else here. Back to the security team. scripts/check-kernel-fix -v -s 5.5 -r CVE-2024-27394 80e679b352c3 ("tcp: Fix Use-After-Free in tcp_ao_connect_init") merged v6.9-rc6~27^2~22 Fixes: 7c2ffaf21bd6 ("net/tcp: Calculate TCP-AO traffic keys") merged v6.7-rc1~160^2~18^2~18 Security fix for CVE-2024-27394 bsc#1224097 with CVSS 5.5 Experts candidates: mkubecek@suse.cz denis.kirjanov@suse.com davide.benini@suse.com SLE15-SP6-AZURE-GA:80e679b352c3ce5158f3f778cfb77eb767e586fb:nope SLE15-SP6-GA:80e679b352c3ce5158f3f778cfb77eb767e586fb:nope SLE15-SP6-AZURE:80e679b352c3ce5158f3f778cfb77eb767e586fb:nope SLE15-SP6:80e679b352c3ce5158f3f778cfb77eb767e586fb:nope SLE15-SP6-RT:80e679b352c3ce5158f3f778cfb77eb767e586fb:nope SLE15-SP6-RT-GA:80e679b352c3ce5158f3f778cfb77eb767e586fb:nope ALP-current-GA:80e679b352c3ce5158f3f778cfb77eb767e586fb:nope ALP-current:80e679b352c3ce5158f3f778cfb77eb767e586fb:nope ALP-current-RT:80e679b352c3ce5158f3f778cfb77eb767e586fb:nope ALP-current-RT-GA:80e679b352c3ce5158f3f778cfb77eb767e586fb:nope SLE15-SP5-AZURE:80e679b352c3ce5158f3f778cfb77eb767e586fb:nope SLE15-SP5:80e679b352c3ce5158f3f778cfb77eb767e586fb:nope SLE15-SP5-RT:80e679b352c3ce5158f3f778cfb77eb767e586fb:nope SLE15-SP4-LTSS:80e679b352c3ce5158f3f778cfb77eb767e586fb:nope SLE15-SP4-RT-LTSS:80e679b352c3ce5158f3f778cfb77eb767e586fb:nope SLE15-SP3-LTSS:80e679b352c3ce5158f3f778cfb77eb767e586fb:nope SLE15-SP3-RT-LTSS:80e679b352c3ce5158f3f778cfb77eb767e586fb:nope SLE15-SP2-LTSS:80e679b352c3ce5158f3f778cfb77eb767e586fb:nope SLE15-SP2-EB:80e679b352c3ce5158f3f778cfb77eb767e586fb:nope SLE15-SP2-EB-carwos1:80e679b352c3ce5158f3f778cfb77eb767e586fb:nope SLE15-SP2-EB-carwos1-1:80e679b352c3ce5158f3f778cfb77eb767e586fb:nope SLE12-SP5-AZURE:80e679b352c3ce5158f3f778cfb77eb767e586fb:nope SLE12-SP5:80e679b352c3ce5158f3f778cfb77eb767e586fb:nope SLE12-SP5-RT:80e679b352c3ce5158f3f778cfb77eb767e586fb:nope SLE12-SP3-LTSS:80e679b352c3ce5158f3f778cfb77eb767e586fb:nope SLE12-SP3-TD:80e679b352c3ce5158f3f778cfb77eb767e586fb:nope SLE11-SP4-LTSS:80e679b352c3ce5158f3f778cfb77eb767e586fb:nope cve/linux-4.4-LTSS:80e679b352c3ce5158f3f778cfb77eb767e586fb:nope cve/linux-5.3-LTSS:80e679b352c3ce5158f3f778cfb77eb767e586fb:nope cve/linux-5.14-LTSS:80e679b352c3ce5158f3f778cfb77eb767e586fb:nope ACTION NEEDED! SLE15-SP6: NOPE: no problema for 80e679b352c3ce5158f3f778cfb77eb767e586fb SLE15-SP5: NOPE: no problema for 80e679b352c3ce5158f3f778cfb77eb767e586fb SLE12-SP5: NOPE: no problema for 80e679b352c3ce5158f3f778cfb77eb767e586fb SLE12-SP3-TD: NOPE: no problema for 80e679b352c3ce5158f3f778cfb77eb767e586fb
All done, closing.