{"id":"DEBIAN-CVE-2024-36489","details":"In the Linux kernel, the following vulnerability has been resolved:  tls: fix missing memory barrier in tls_init  In tls_init(), a write memory barrier is missing, and store-store reordering may cause NULL dereference in tls_{setsockopt,getsockopt}.  CPU0                               CPU1 -----                              ----- // In tls_init() // In tls_ctx_create() ctx = kzalloc() ctx-\u003esk_proto = READ_ONCE(sk-\u003esk_prot) -(1)  // In update_sk_prot() WRITE_ONCE(sk-\u003esk_prot, tls_prots)     -(2)                                     // In sock_common_setsockopt()                                    READ_ONCE(sk-\u003esk_prot)-\u003esetsockopt()                                     // In tls_{setsockopt,getsockopt}()                                    ctx-\u003esk_proto-\u003esetsockopt()    -(3)  In the above scenario, when (1) and (2) are reordered, (3) can observe the NULL value of ctx-\u003esk_proto, causing NULL dereference.  To fix it, we rely on rcu_assign_pointer() which implies the release barrier semantic. By moving rcu_assign_pointer() after ctx-\u003esk_proto is initialized, we can ensure that ctx-\u003esk_proto are visible when changing sk-\u003esk_prot.","modified":"2026-09-15T09:03:07.524351070Z","published":"2024-06-21T11:15:10.513Z","upstream":["CVE-2024-36489"],"references":[{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2024-36489"}],"affected":[{"package":{"name":"linux","ecosystem":"Debian:12","purl":"pkg:deb/debian/linux?arch=source&distro=bookworm"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.1.94-1"}]}],"versions":["6.1.27-1","6.1.37-1","6.1.38-1","6.1.38-2","6.1.38-2~bpo11+1","6.1.38-3","6.1.38-4","6.1.38-4~bpo11+1","6.1.52-1","6.1.55-1","6.1.55-1~bpo11+1","6.1.64-1","6.1.66-1","6.1.67-1","6.1.69-1","6.1.69-1~bpo11+1","6.1.76-1","6.1.76-1~bpo11+1","6.1.82-1","6.1.85-1","6.1.90-1","6.1.90-1~bpo11+1","6.1.94-1~bpo11+1"],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2024-36489.json"}},{"package":{"name":"linux","ecosystem":"Debian:13","purl":"pkg:deb/debian/linux?arch=source&distro=trixie"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.9.7-1"}]}],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2024-36489.json"}},{"package":{"name":"linux","ecosystem":"Debian:14","purl":"pkg:deb/debian/linux?arch=source&distro=forky"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.9.7-1"}]}],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2024-36489.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}