CVE-2024-42283CWE-908

CVE-2024-42283

Medium · published August 17, 2024

CVSS v3.1
5.5
EPSS
0%
Percentile
14.5
In the wild
Unconfirmed
What it is

In the Linux kernel, the following vulnerability has been resolved:

net: nexthop: Initialize all fields in dumped nexthops

struct nexthop_grp contains two reserved fields that are not initialized by

nla_put_nh_group(), and carry garbage. This can be observed e.g. with

strace (edited for clarity):

# ip nexthop add id 1 dev lo

# ip nexthop add id 101 group 1

# strace -e recvmsg ip nexthop get id 101

...

recvmsg(... [{nla_len=12, nla_type=NHA_GROUP},

[{id=1, weight=0, resvd1=0x69, resvd2=0x67}]] ...) = 52

The fields are reserved and therefore not currently used. But as they are, they

leak kernel memory, and the fact they are not just zero complicates repurposing

of the fields for new ends. Initialize the full structure.

The record
Technical detail
CVSS v3.1
5.5 · MEDIUM
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.00242 · 14.5th percentile
Weakness
CWE-908 · Use of Uninitialized Resource
Published
2024-08-17T13:15Z
Affected products (6)
ProductVersionsFixed in
linux/linux_kernel≥ 5.3, < 5.4.2825.4.282
linux/linux_kernel≥ 5.5, < 5.10.2245.10.224
linux/linux_kernel≥ 5.11, < 5.15.1655.15.165
linux/linux_kernel≥ 5.16, < 6.1.1036.1.103
linux/linux_kernel≥ 6.2, < 6.6.446.6.44
linux/linux_kernel≥ 6.7, < 6.10.36.10.3
References (10)
EPSS history
Timeline
  • 17 AUG 09:08Z
    net: nexthop: Initialize all fields in dumped nexthops
    cvelistv5