Menu

Star on GitHub · 3.4k

CVE-2024-26596

5.5 · MEDIUM

In the Linux kernel, the following vulnerability has been resolved: net: dsa: fix netdev_priv() dereference before check on non-DSA netdevice events After the blamed commit, we started doing this…

Published Feb 23, 2024EPSS 0.24%

Overview

CVE-2024-26596 is a medium-severity vulnerability. It was published on February 23, 2024 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

This vulnerability has a CVSS 3.1 base score of 5.5, rated MEDIUM. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

Technical description

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

net: dsa: fix netdev_priv() dereference before check on non-DSA netdevice events

After the blamed commit, we started doing this dereference for every

NETDEV_CHANGEUPPER and NETDEV_PRECHANGEUPPER event in the system.

static inline struct dsa_port *dsa_user_to_port(const struct net_device *dev)

{

struct dsa_user_priv *p = netdev_priv(dev);

return p->dp;

}

Which is obviously bogus, because not all net_devices have a netdev_priv()

of type struct dsa_user_priv. But struct dsa_user_priv is fairly small,

and p->dp means dereferencing 8 bytes starting with offset 16. Most

drivers allocate that much private memory anyway, making our access not

fault, and we discard the bogus data quickly afterwards, so this wasn't

caught.

But the dummy interface is somewhat special in that it calls

alloc_netdev() with a priv size of 0. So every netdev_priv() dereference

is invalid, and we get this when we emit a NETDEV_PRECHANGEUPPER ev

Remediation

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Frequently asked questions

What is CVE-2024-26596?

CVE-2024-26596 is a medium-severity vulnerability. It was published on February 23, 2024 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

How severe is CVE-2024-26596?

This vulnerability has a CVSS 3.1 base score of 5.5, rated MEDIUM. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2024-26596?

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2024-26596?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2024-26596 is actually reachable in your own applications and APIs, then verifies each finding before reporting it. That tells you if the weakness is a real, exploitable risk in your environment or a false positive you can safely deprioritize.

Related MEDIUM CVEs from 2024

View all
LiveWatch live →