CVEfocus › CVE database › CVE-2024-26596

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

CVSS 5.5 MediumEPSS 0.2% (higher than 15% of CVEs)Published 2024-02-23Updated 2026-10-15Assigner: Linux

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 event with a VLAN as its new upper: $ ip link add dummy1 type dummy $ ip link add link dummy1 name dummy1.100 type vlan id 100 [ 43.309174] ================================================================== [ 43.316456] BUG: KASAN: slab-out-of-bounds in dsa_user_prechangeupper+0x30/0xe8 [ 43.323835] Read of size 8 at addr ffff3f86481d2990 by task ip/374 [ 43.330058] [ 43.342436] Call trace: [ 43.366542] dsa_user_prechangeupper+0x30/0xe8 [ 43.371024] dsa_user_netdevice_event+0xb38/0xee8 [ 43.375768] notifier_call_chain+0xa4/0x210 [ 43.379985] raw_notifier_call_chain+0x24/0x38 [ 43.384464] __netdev_upper_dev_link+0x3ec/0x5d8 [ 43.389120] netdev_upper_dev_link+0x70/0xa8 [ 43.393424] register_vlan_dev+0x1bc/0x310 [ 43.397554] vlan_newlink+0x210/0x248 [ 43.401247] rtnl_newlink+0x9fc/0xe30 [ 43.404942] rtnetlink_rcv_msg+0x378/0x580 Avoid the kernel oops by dereferencing after the type check, as customary.

What to do

Fixed builds are available from Debian: see the table below for the fixed version per release.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

3Fixed
83Will not fix
53Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04linuxNot affected
vulnerable_code_not_present
Ubuntu 24.04linux-awsNot affected
vulnerable_code_not_present
Ubuntu 24.04linux-azureNot affected
vulnerable_code_not_present
Ubuntu 24.04linux-azure-fdeNot affected
vulnerable_code_not_present
Ubuntu 24.04linux-gcpNot affected
vulnerable_code_not_present
Ubuntu 24.04linux-gkeNot affected
vulnerable_code_not_present
Ubuntu 24.04linux-gkeopNot affected
vulnerable_code_not_present
Ubuntu 24.04linux-ibmNot affected
vulnerable_code_not_present
Ubuntu 24.04linux-intelNot affected
vulnerable_code_not_present
Ubuntu 24.04linux-lowlatencyNot affected
vulnerable_code_not_present
Ubuntu 24.04linux-nvidiaNot affected
vulnerable_code_not_present
Ubuntu 24.04linux-nvidia-lowlatencyNot affected
vulnerable_code_not_present
Ubuntu 24.04linux-oem-6.11Not affected
vulnerable_code_not_present
Ubuntu 24.04linux-oem-6.8Not affected
vulnerable_code_not_present
Ubuntu 24.04linux-oracleNot affected
vulnerable_code_not_present
Ubuntu 24.04linux-raspiNot affected
vulnerable_code_not_present
Ubuntu 24.04linux-realtimeNot affected
vulnerable_code_not_present
Ubuntu 24.04linux-riscvNot affected
vulnerable_code_not_present
Ubuntu 22.04linuxNot affected
vulnerable_code_not_present
Ubuntu 22.04linux-allwinner-5.19Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-26596
Ubuntu 22.04linux-awsNot affected
vulnerable_code_not_present
Ubuntu 22.04linux-aws-5.19Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-26596
Ubuntu 22.04linux-aws-6.2Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-26596
Ubuntu 22.04linux-aws-6.5Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-26596
Ubuntu 22.04linux-aws-6.8Not affected
vulnerable_code_not_present
Ubuntu 22.04linux-azureNot affected
vulnerable_code_not_present
Ubuntu 22.04linux-azure-5.19Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-26596
Ubuntu 22.04linux-azure-6.2Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-26596
Ubuntu 22.04linux-azure-6.5Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-26596
Ubuntu 22.04linux-azure-6.8Not affected
vulnerable_code_not_present
Ubuntu 22.04linux-azure-fdeNot affected
vulnerable_code_not_present
Ubuntu 22.04linux-azure-fde-5.19Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-26596
Ubuntu 22.04linux-azure-fde-6.2Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-26596
Ubuntu 22.04linux-gcpNot affected
vulnerable_code_not_present
Ubuntu 22.04linux-gcp-5.19Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-26596
Ubuntu 22.04linux-gcp-6.2Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-26596
Ubuntu 22.04linux-gcp-6.5Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-26596
Ubuntu 22.04linux-gcp-6.8Not affected
vulnerable_code_not_present
Ubuntu 22.04linux-gkeNot affected
vulnerable_code_not_present
Ubuntu 22.04linux-gkeopNot affected
vulnerable_code_not_present
Ubuntu 22.04linux-hwe-5.19Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-26596
Ubuntu 22.04linux-hwe-6.2Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-26596
Ubuntu 22.04linux-hwe-6.5Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-26596
Ubuntu 22.04linux-hwe-6.8Not affected
vulnerable_code_not_present
Ubuntu 22.04linux-ibmNot affected
vulnerable_code_not_present
Ubuntu 22.04linux-intel-iot-realtimeWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-26596
Ubuntu 22.04linux-intel-iotgNot affected
vulnerable_code_not_present
Ubuntu 22.04linux-kvmNot affected
vulnerable_code_not_present
Ubuntu 22.04linux-lowlatencyNot affected
vulnerable_code_not_present
Ubuntu 22.04linux-lowlatency-hwe-5.19Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-26596
Ubuntu 22.04linux-lowlatency-hwe-6.2Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-26596
Ubuntu 22.04linux-lowlatency-hwe-6.5Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-26596
Ubuntu 22.04linux-lowlatency-hwe-6.8Not affected
vulnerable_code_not_present
Ubuntu 22.04linux-nvidiaNot affected
vulnerable_code_not_present
Ubuntu 22.04linux-nvidia-6.2Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-26596
Ubuntu 22.04linux-nvidia-6.5Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-26596
Ubuntu 22.04linux-nvidia-6.8Not affected
vulnerable_code_not_present
Ubuntu 22.04linux-oem-5.17Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-26596
Ubuntu 22.04linux-oem-6.0Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-26596
Ubuntu 22.04linux-oem-6.1Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-26596
Ubuntu 22.04linux-oem-6.5Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-26596
Ubuntu 22.04linux-oracleNot affected
vulnerable_code_not_present
Ubuntu 22.04linux-oracle-6.5Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-26596
Ubuntu 22.04linux-oracle-6.8Not affected
vulnerable_code_not_present
Ubuntu 22.04linux-raspiNot affected
vulnerable_code_not_present
Ubuntu 22.04linux-realtimeWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-26596
Ubuntu 22.04linux-riscvWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-26596
Ubuntu 22.04linux-riscv-5.19Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-26596
Ubuntu 22.04linux-riscv-6.5Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-26596
Ubuntu 22.04linux-riscv-6.8Not affected
vulnerable_code_not_present
Ubuntu 22.04linux-starfive-5.19Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-26596
Ubuntu 22.04linux-starfive-6.2Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-26596
Ubuntu 22.04linux-starfive-6.5Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-26596
Ubuntu 22.04linux-xilinx-zynqmpNot affected
vulnerable_code_not_present
Ubuntu 20.04linux-aws-5.11Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-26596
Ubuntu 20.04linux-aws-5.13Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-26596
Ubuntu 20.04linux-aws-5.8Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-26596
Ubuntu 20.04linux-azure-5.11Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-26596
Ubuntu 20.04linux-azure-5.13Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-26596
Ubuntu 20.04linux-azure-5.8Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-26596
Ubuntu 20.04linux-azure-fdeWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-26596
Ubuntu 20.04linux-gcp-5.11Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-26596
Ubuntu 20.04linux-gcp-5.13Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-26596
Ubuntu 20.04linux-gcp-5.8Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-26596
Ubuntu 20.04linux-gkeWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-26596
Ubuntu 20.04linux-gke-5.15Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-26596
Ubuntu 20.04linux-gkeopNot affected
vulnerable_code_not_present
Ubuntu 20.04linux-gkeop-5.15Not affected
vulnerable_code_not_present
Ubuntu 20.04linux-hwe-5.11Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-26596
Ubuntu 20.04linux-hwe-5.13Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-26596
Ubuntu 20.04linux-hwe-5.8Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-26596
Ubuntu 20.04linux-intel-5.13Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-26596
Ubuntu 20.04linux-oem-5.10Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-26596
Ubuntu 20.04linux-oem-5.13Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-26596
Ubuntu 20.04linux-oem-5.14Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-26596
Ubuntu 20.04linux-oem-5.6Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-26596
Ubuntu 20.04linux-oracle-5.11Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-26596
Ubuntu 20.04linux-oracle-5.13Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-26596
Ubuntu 20.04linux-oracle-5.8Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-26596
Ubuntu 20.04linux-raspi2Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-26596
Ubuntu 20.04linux-riscvWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-26596
Ubuntu 20.04linux-riscv-5.11Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-26596
Ubuntu 20.04linux-riscv-5.8Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-26596
Ubuntu 18.04linux-aws-5.0Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-26596
Ubuntu 18.04linux-aws-5.3Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-26596
Ubuntu 18.04linux-azureWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-26596
Ubuntu 18.04linux-azure-5.3Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-26596
Ubuntu 18.04linux-azure-edgeWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-26596
Ubuntu 18.04linux-gcpWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-26596
Ubuntu 18.04linux-gcp-5.3Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-26596
Ubuntu 18.04linux-gke-4.15Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-26596
Ubuntu 18.04linux-gke-5.0Will not fix
Ubuntu decided not to fix this in this release
Ubuntu 18.04linux-gke-5.3Will not fix
Ubuntu decided not to fix this in this release
Ubuntu 18.04linux-gke-5.4Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-26596
Ubuntu 18.04linux-gkeop-5.4Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-26596
Ubuntu 18.04linux-hweWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-26596
Ubuntu 18.04linux-hwe-edgeNot affected
vulnerable_code_not_present
Ubuntu 18.04linux-oemWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-26596
Ubuntu 18.04linux-oem-osp1Not affected
vulnerable_code_not_present
Ubuntu 18.04linux-oracle-5.0Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-26596
Ubuntu 18.04linux-oracle-5.3Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-26596
Ubuntu 18.04linux-raspi2Will not fix
Ubuntu decided not to fix this in this release
Ubuntu 18.04linux-raspi2-5.3Will not fix
Ubuntu decided not to fix this in this release
Ubuntu 16.04linuxNot affected
vulnerable_code_not_present
Ubuntu 16.04linux-awsNot affected
vulnerable_code_not_present
Ubuntu 16.04linux-aws-hweNot affected
vulnerable_code_not_present
Ubuntu 16.04linux-azureNot affected
vulnerable_code_not_present
Ubuntu 16.04linux-gcpNot affected
vulnerable_code_not_present
Ubuntu 16.04linux-gkeWill not fix
Ubuntu decided not to fix this in this release
Ubuntu 16.04linux-hweNot affected
vulnerable_code_not_present
Ubuntu 16.04linux-hwe-edgeWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-26596
Ubuntu 16.04linux-kvmNot affected
vulnerable_code_not_present
Ubuntu 16.04linux-oemWill not fix
Ubuntu decided not to fix this in this release
Ubuntu 16.04linux-oracleNot affected
vulnerable_code_not_present
Ubuntu 16.04linux-raspi2Will not fix
Ubuntu decided not to fix this in this release
Ubuntu 16.04linux-snapdragonWill not fix
Ubuntu decided not to fix this in this release
Debian 14linuxFixed6.7.7-1DEBIAN-CVE-2024-26596
Debian 13linuxFixed6.7.7-1DEBIAN-CVE-2024-26596
Debian 12linuxFixed6.1.129-1DEBIAN-CVE-2024-26596

What the vendor says

As published in the CVE record by Linux, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.