CVE-2024-26732
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2024-26732 addresses a locking vulnerability in the Linux kernel's implementation of setsockopt(SOPEEKOFF). The issue was discovered when syzbot reported a lockdep violation involving afunix support of SOPEEK_OFF. The vulnerability affects Linux kernel versions from 6.7 up to (excluding) 6.7.7, and various release candidates of version 6.8 (rc1 through rc5) (NVD).

Technical details

The vulnerability stems from unnecessary thread safety enforcement in the kernel's handling of SOPEEKOFF socket option. Since SOPEEKOFF is inherently not thread safe (using a per-socket skpeekoff field), the implementation was creating pointless lock dependencies. The issue manifested as a circular locking dependency between the socket lock (sklock-AFUNIX) and the unix socket's iolock (u->iolock) (Kernel Patch). The vulnerability has been assigned a CVSS v3.1 base score of 5.5 (MEDIUM) with vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H (NVD).

Impact

The vulnerability could lead to deadlock conditions in the Linux kernel when applications use the SOPEEKOFF socket option with Unix domain sockets. This could potentially result in system availability issues, as indicated by the high availability impact in the CVSS score (NVD).

Mitigation and workarounds

The vulnerability has been patched in the Linux kernel. The fix implements a lockless setsockopt(SOPEEKOFF) by removing the unnecessary thread safety enforcement. After the patch, setsockopt(SOPEEKOFF) no longer acquires the socket lock, skbconsumeudp() no longer requires socket lock acquisition, and afunix no longer needs a special version of sksetpeekoff() (Kernel Patch).

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