CVE-2024-42283 net: nexthop: Initialize all fields in dumped nexthops

Medium 5.5 Published Updated

Uninitialized kernel memory in nexthop group dumps allows local attackers to read sensitive kernel data.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2024-42283?

CVE-2024-42283 is a medium-severity vulnerability in Linux kernel, published on 17 Aug 2024. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

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.

Weakness: CWE-908

Which versions are affected by CVE-2024-42283?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-42283?

Apply the vendor's patch.

Is CVE-2024-42283 being exploited?

There is no known exploitation of CVE-2024-42283 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as AZL-47799, AZL-47838, BELL-CVE-2024-42283, DEBIAN-CVE-2024-42283, GHSA-qf65-4f88-5xjw, UBUNTU-CVE-2024-42283.

Is CVE-2024-42283 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free