PT-2024-27215 · Linux+10 · Linux Kernel+10

Syzkaller

·

Published

2024-05-02

·

Updated

2026-05-07

·

CVE-2024-36927

CVSS v3.1

4.7

Medium

VectorAV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions Linux kernel versions prior to 6.6.37
Description A vulnerability has been resolved in the Linux kernel, specifically in the ipv4 module. The issue is related to an uninit-value access in the ip make skb() function. This function tests the HDRINCL flag to determine if the socket buffer (skb) has an ICMP header (icmphdr). However, the HDRINCL flag can cause a race condition. If the setsockopt(2) function is called with IP HDRINCL while ip make skb() is running, it can change the HDRINCL flag, leading to the function accessing icmphdr in the skb even if it is not included. This issue was reported by KMSAN. To fix this, the code now checks FLOWI FLAG KNOWN NH on fl4->flowi4 flags instead of testing HDRINCL on the socket. Additionally, fl4->fl4 icmp type and fl4->fl4 icmp code are not initialized and are part of a union in struct flowi4. These are implicitly initialized by flowi4 init output(), but the code should not rely on a specific union layout. Therefore, these variables are now explicitly initialized in raw sendmsg().
Recommendations To resolve this issue, update the Linux kernel to version 6.6.37 or later. This update includes the fix for the uninit-value access in ip make skb() and ensures that fl4->fl4 icmp type and fl4->fl4 icmp code are properly initialized.

Exploit

Fix

DoS

Race Condition

Use of Uninitialized Resource

Weakness Enumeration

Related Identifiers

ALSA-2024:5101
ALSA-2024:5102
ALSA-2025_12746
ALSA-2025_12752
ALSA-2025_12753
ALSA-2025_16880
AZL-56207
BDU:2025-11996
CESA-2024_5101
CESA-2024_5102
CVE-2024-36927
DLA-4271-1
DSA-5925-1
ECHO-0746-409A-7121
INFSA-2024_5101
INFSA-2024_5102
INFSA-2024_9315
MGASA-2024-0263
MGASA-2024-0266
OESA-2024-2292
OESA-2024-2293
OESA-2024-2296
OPENSUSE-SU-2024_4314-1
OPENSUSE-SU-2024_4316-1
RHSA-2024:5101
RHSA-2024:5102
RHSA-2024:9315
RHSA-2024_5101
RHSA-2024_5102
RHSA-2024_9315
RHSA-2025:3215
RLSA-2024:5101
RLSA-2024:5102
RXSA-2024:5101
SUSE-SU-2024:4314-1
SUSE-SU-2024:4316-1
SUSE-SU-2024:4318-1
SUSE-SU-2024:4387-1
SUSE-SU-2025:20163-1
SUSE-SU-2025:20164-1
SUSE-SU-2025:20246-1
SUSE-SU-2025:20247-1
USN-6949-1
USN-6949-2
USN-6952-1
USN-6952-2
USN-6955-1
USN-8096-1
USN-8096-2
USN-8096-3
USN-8096-4
USN-8096-5
USN-8116-1
USN-8141-1
USN-8163-1
USN-8163-2
USN-8243-1

Affected Products

Almalinux
Astra Linux
Centos
Debian
Linuxmint
Linux Kernel
Red Hat
Red Os
Rocky Linux
Suse
Ubuntu