PT-2024-4100 · Linux+9 · Linux Kernel+9

Thadeu Lima De Souza Cascardo

·

Published

2024-05-06

·

Updated

2026-01-22

·

CVE-2024-36883

CVSS v3.1

7.1

High

VectorAV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
Name of the Vulnerable Software and Affected Versions Linux kernel (affected versions not specified)
Description The issue is related to an out-of-bounds access in the net alloc generic() function in the Linux kernel. This function is called by net alloc() without any locking, and it reads max gen ptrs, which is changed under pernet ops rwsem. The function reads max gen ptrs twice, first to allocate an array and then to set s.len, which is later used to limit the bounds of the array access. It is possible that the array is allocated and another thread is registering a new pernet ops, increments max gen ptrs, which is then used to set s.len with a larger than allocated length for the variable array. This could allow an attacker to impact the confidentiality, integrity, and availability of protected information.
Recommendations To resolve the issue, read max gen ptrs only once in net alloc generic(). If max gen ptrs is later incremented, it will be caught in net assign generic(). As a temporary workaround, consider restricting access to the vulnerable net alloc generic() function until a patch is available.

Exploit

Fix

DoS

Out of bounds Read

Memory Corruption

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

ALSA-2024:6567
ALSA-2024:7000
ALSA-2024:7001
ALSA-2025_16880
BDU:2024-04551
CESA-2024_7000
CESA-2024_7001
CVE-2024-36883
DLA-3840-1
DLA-3843-1
DSA-5703-1
INFSA-2024_6567
INFSA-2024_7000
INFSA-2024_7001
MGASA-2024-0263
MGASA-2024-0266
OESA-2024-1705
OESA-2024-1706
OESA-2024-1707
OESA-2024-1766
OPENSUSE-SU-2024_4314-1
OPENSUSE-SU-2024_4315-1
OPENSUSE-SU-2024_4316-1
OPENSUSE-SU-2024_4376-1
RHSA-2024:5672
RHSA-2024:5673
RHSA-2024:6206
RHSA-2024:6567
RHSA-2024:7000
RHSA-2024:7001
RHSA-2024_6567
RHSA-2024_7000
RHSA-2024_7001
RLSA-2024:6567
RLSA-2024:7001
RXSA-2024:6567
SUSE-SU-2024:4314-1
SUSE-SU-2024:4315-1
SUSE-SU-2024:4316-1
SUSE-SU-2024:4318-1
SUSE-SU-2024:4364-1
SUSE-SU-2024:4376-1
SUSE-SU-2024:4387-1
SUSE-SU-2025:0236-1
SUSE-SU-2025:20163-1
SUSE-SU-2025:20164-1
SUSE-SU-2025:20246-1
SUSE-SU-2025:20247-1
SUSE-SU-2025_0236-1
USN-6949-1
USN-6949-2
USN-6950-1
USN-6950-2
USN-6950-3
USN-6950-4
USN-6951-1
USN-6951-2
USN-6951-3
USN-6951-4
USN-6952-1
USN-6952-2
USN-6953-1
USN-6955-1
USN-6956-1
USN-6957-1
USN-6979-1
USN-7019-1

Affected Products

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