# CVE-2024-36489: tls: fix missing memory barrier in tls\_init

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.31% (percentile 16, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2024-06-21T10:18:10.327Z
- **Modified:** 2026-10-15T01:18:23.000Z

## Who should check

- Anyone running Linux \>= d5bee7374b68de3c44586d46e9e61ffc97a1e886, \< d72e126e9a36d3d33889829df8fc90100bb0e071; \>= d5bee7374b68de3c44586d46e9e61ffc97a1e886, \< 2c260a24cf1c4d30ea3646124f766ee46169280b; \>= d5bee7374b68de3c44586d46e9e61ffc97a1e886, \< 335c8f1566d8e44c384d16b450a18554896d4e8b; \>= d5bee7374b68de3c44586d46e9e61ffc97a1e886, \< ab67c2fd3d070a21914d0c31319d3858ab4e199c; \>= d5bee7374b68de3c44586d46e9e61ffc97a1e886, \< ef21007a7b581c7fe64d5a10c320880a033c837b; \>= d5bee7374b68de3c44586d46e9e61ffc97a1e886, \< 91e61dd7a0af660408e87372d8330ceb218be302
- Anyone running Linux 5.7

## Description

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-\>sk\_proto = READ\_ONCE(sk-\>sk\_prot) -(1)

// In update\_sk\_prot()
WRITE\_ONCE(sk-\>sk\_prot, tls\_prots)     -(2)

                                   // In sock\_common\_setsockopt()
                                   READ\_ONCE(sk-\>sk\_prot)-\>setsockopt()

                                   // In tls\_{setsockopt,getsockopt}()
                                   ctx-\>sk\_proto-\>setsockopt()    -(3)

In the above scenario, when (1) and (2) are reordered, (3) can observe
the NULL value of ctx-\>sk\_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-\>sk\_proto is
initialized, we can ensure that ctx-\>sk\_proto are visible when
changing sk-\>sk\_prot.

## Affected and fixed versions

- Linux: \>= d5bee7374b68de3c44586d46e9e61ffc97a1e886, \< d72e126e9a36d3d33889829df8fc90100bb0e071; \>= d5bee7374b68de3c44586d46e9e61ffc97a1e886, \< 2c260a24cf1c4d30ea3646124f766ee46169280b; \>= d5bee7374b68de3c44586d46e9e61ffc97a1e886, \< 335c8f1566d8e44c384d16b450a18554896d4e8b; \>= d5bee7374b68de3c44586d46e9e61ffc97a1e886, \< ab67c2fd3d070a21914d0c31319d3858ab4e199c; \>= d5bee7374b68de3c44586d46e9e61ffc97a1e886, \< ef21007a7b581c7fe64d5a10c320880a033c837b; \>= d5bee7374b68de3c44586d46e9e61ffc97a1e886, \< 91e61dd7a0af660408e87372d8330ceb218be302 (cvelist)
- Linux: 5.7 (cvelist)

## Mitigation

- Upgrade Linux to 91e61dd7a0af660408e87372d8330ceb218be302 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-36489. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-36489.md
Affected: Linux >= d5bee7374b68de3c44586d46e9e61ffc97a1e886, < d72e126e9a36d3d33889829df8fc90100bb0e071; >= d5bee7374b68de3c44586d46e9e61ffc97a1e886, < 2c260a24cf1c4d30ea3646124f766ee46169280b; >= d5bee7374b68de3c44586d46e9e61ffc97a1e886, < 335c8f1566d8e44c384d16b450a18554896d4e8b; >= d5bee7374b68de3c44586d4…
Fixed in: Linux 2c260a24cf1c4d30ea3646124f766ee46169280b, Linux 335c8f1566d8e44c384d16b450a18554896d4e8b, Linux 91e61dd7a0af660408e87372d8330ceb218be302

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-36489 being exploited?

There is no confirmed exploitation: CVE-2024-36489 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.31% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-36489?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-36489?

Linux \>= d5bee7374b68de3c44586d46e9e61ffc97a1e886, \< d72e126e9a36d3d33889829df8fc90100bb0e071; \>= d5bee7374b68de3c44586d46e9e61ffc97a1e886, \< 2c260a24cf1c4d30ea3646124f766ee46169280b; \>= d5bee7374b68de3c44586d46e9e61ffc97a1e886, \< 335c8f1566d8e44c384d16b450a18554896d4e8b; \>= d5bee7374b68de3c44586d46e9e61ffc97a1e886, \< ab67c2fd3d070a21914d0c31319d3858ab4e199c; \>= d5bee7374b68de3c44586d46e9e61ffc97a1e886, \< ef21007a7b581c7fe64d5a10c320880a033c837b; \>= d5bee7374b68de3c44586d46e9e61ffc97a1e886, \< 91e61dd7a0af660408e87372d8330ceb218be302; Linux 5.7.

### Is there a fix for CVE-2024-36489?

Yes. Fixed in Linux 2c260a24cf1c4d30ea3646124f766ee46169280b, Linux 335c8f1566d8e44c384d16b450a18554896d4e8b, Linux 91e61dd7a0af660408e87372d8330ceb218be302. Upgrade Linux to 91e61dd7a0af660408e87372d8330ceb218be302 or later.

### How do I check if I'm affected by CVE-2024-36489?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/d72e126e9a36d3d33889829df8fc90100bb0e071>
- patch: <https://git.kernel.org/stable/c/2c260a24cf1c4d30ea3646124f766ee46169280b>
- patch: <https://git.kernel.org/stable/c/335c8f1566d8e44c384d16b450a18554896d4e8b>
- patch: <https://git.kernel.org/stable/c/ab67c2fd3d070a21914d0c31319d3858ab4e199c>
- patch: <https://git.kernel.org/stable/c/ef21007a7b581c7fe64d5a10c320880a033c837b>
- patch: <https://git.kernel.org/stable/c/91e61dd7a0af660408e87372d8330ceb218be302>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-613116.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-36489>

HTML: <https://flawdb.com/CVE-2024-36489> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-36489>
