Memory Barrier Issue in Linux Kernel's TLS Implementation

linux Updated 02 Oct 2025

Summary

21/06/2024
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2024-36489: 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 t... Affects linux versions < 5.10.221-1. Fixed in 5.10.221-1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The Linux kernel is the core component of many operating systems, managing hardware and system resources. It provides essential services for all other parts of the system, including memory management, process scheduling, and device control. The kernel's TLS (Transport Layer Security) implementation is crucial for secure communications over networks. However, it is susceptible to a vulnerability that can lead to NULL dereference errors, potentially compromising system stability and security.

Vulnerability Detail

In the Linux kernel, a vulnerability was identified in the tls_init() function, where a missing write memory barrier can lead to store-store reordering. This reordering may cause a NULL dereference in the tls_{setsockopt,getsockopt} functions. Specifically, if the initialization of ctx->sk_proto is reordered with the update of sk->sk_prot, it can result in ctx->sk_proto being NULL when accessed, leading to a crash or undefined behavior. This vulnerability highlights the importance of proper memory barrier usage in concurrent programming.

How To Fix

Minimum fixed version

5.10.221-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

Currently, there are no specific workarounds mentioned for this vulnerability. It is recommended to apply the patch as soon as it is available.

Conclusion

The vulnerability in the Linux kernel's TLS implementation poses significant risks due to potential NULL dereference errors. It is crucial for users to update their systems to the patched versions to ensure stability and security. Monitoring tools like Vulert can assist in identifying vulnerabilities in open-source software.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

The vulnerability can lead to system crashes or undefined behavior due to NULL dereference errors in the TLS implementation.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected.

Yes, patches are available for various Debian versions. Ensure you update to the specified patched versions to mitigate the risk.

While there are no specific workarounds, it is advisable to monitor your system closely and apply the patch as soon as possible.

Detailed information can be found in the official Debian CVE database or by visiting the provided source link.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

How To Fix

Minimum fixed version

5.10.221-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback