CVE-2022-49582
Linux Debian vulnerability analysis and mitigation

Overview

CVE-2022-49582 is a vulnerability in the Linux kernel's Distributed Switch Architecture (DSA) subsystem. The issue involves a NULL pointer dereference in the dsaportresetvlanfiltering function. The vulnerability was discovered when the 'ds' iterator variable used in dsaportresetvlanfiltering() -> dsaswitchforeachport() overwrites the 'dp' received as argument (Kernel Commit).

Technical details

The vulnerability occurs when switches with vlanfilteringisglobal=true enter a specific code path, resulting in dereferencing an invalid dp in dsaportresetvlan_filtering() after leaving a VLAN-aware bridge. The issue stems from a variable overwrite problem where the iterator variable overwrites the function argument. According to Ubuntu's security assessment, this vulnerability has been assigned a CVSS 3 Severity Score of 5.5 (Medium) (Ubuntu Security).

Impact

When exploited, this vulnerability can lead to a NULL pointer dereference in the Linux kernel's networking subsystem, specifically affecting systems using the Distributed Switch Architecture (DSA) functionality. This could potentially result in system crashes or denial of service conditions.

Mitigation and workarounds

The issue has been fixed by introducing a dedicated 'other_dp' iterator variable to avoid the variable overwrite problem. The fix was implemented in the Linux kernel through a patch that modifies the net/dsa/port.c file. The patch has been backported to various maintained kernel versions (Kernel Commit).

Additional resources


SourceThis report was generated using AI

Related Linux Debian vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-59030HIGH7.5
  • Linux DebianLinux Debian
  • pdns-recursor
NoYesDec 09, 2025
CVE-2025-59029MEDIUM5.3
  • Linux DebianLinux Debian
  • pdns-recursor
NoYesDec 09, 2025
CVE-2025-40344N/AN/A
  • Linux KernelLinux Kernel
  • kernel-rt-devel
NoYesDec 09, 2025
CVE-2025-40343N/AN/A
  • Linux KernelLinux Kernel
  • bpftool
NoYesDec 09, 2025
CVE-2025-40342N/AN/A
  • Linux KernelLinux Kernel
  • kernel-rt-trace
NoYesDec 09, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management