CVE-2024-36489
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2024-36489 is a vulnerability in the Linux kernel's TLS (Transport Layer Security) implementation. The issue was discovered in the tlsinit() function where a missing write memory barrier could lead to store-store reordering, potentially causing NULL dereference in tls{setsockopt,getsockopt} functions (Kernel Git).

Technical details

The vulnerability stems from a race condition in the TLS initialization process. When store-store reordering occurs between ctx->skproto initialization and sk->skprot update, it can result in a NULL dereference. The issue specifically manifests in a scenario where CPU operations can be reordered: ctx->skproto = READONCE(sk->skprot) can be reordered with WRITEONCE(sk->skprot, tlsprots), potentially leading to ctx->sk_proto->setsockopt() accessing a NULL value (Kernel Git).

Impact

The vulnerability can lead to NULL pointer dereference in the Linux kernel's TLS implementation, potentially causing system crashes or denial of service conditions (NVD).

Mitigation and workarounds

The fix involves using rcuassignpointer() which provides release barrier semantics. The patch moves the rcuassignpointer() call after ctx->skproto initialization to ensure proper ordering of operations. This ensures that ctx->skproto is visible before changing sk->skprot in updatesk_prot() (Kernel Git).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management