CVE-2024-40921·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: net: bridge: mst: pass vlan group directly to br_mst_vlan_set_state Pass the already obtained vlan group pointer to br_mst_vlan_set_state() instead of dereferencing it again. Each caller has already correctly dereferenced it for their context. This change is required for the following suspicious RCU dereference fix. No functional changes intended.
- Severity
- medium
- Software
- Kernel
- Fixed in
- 6.9.6
- Published
- 2024-07-12
Affected versions
From: 6.9.3
Until: 6.9.6
Fixed in: 6.9.6
How to fix this CVE
Update your Linux kernel to version 6.9.6 or later to resolve a memory dereferencing issue in the bridge MST (Multiple Spanning Tree) VLAN state management code. This patch improves code safety by eliminating redundant pointer dereferencing operations that could lead to inconsistent behavior. Systems running kernel versions 6.9.3 through 6.9.5 should prioritize this update.
sudo dnf update kernelDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check your installed kernel version with: uname -r
- Step 2: Verify if your system is affected by comparing against 6.9.3-6.9.5 range: if [[ $(uname -r) =~ 6\.9\.[3-5] ]]; then echo 'Vulnerable'; fi
- Step 3: Review kernel logs for MST VLAN state changes: dmesg | grep -i 'mst\|vlan\|bridge'
- Step 4: Confirm the patch was applied by verifying kernel version is 6.9.6 or later: uname -r | grep -E '6\.9\.[6-9]|6\.(1[0-9]|[2-9][0-9])'
- Step 5: Check if bridge module is loaded: lsmod | grep bridge
FAQ
What is CVE-2024-40921?
CVE-2024-40921 is a kernel vulnerability in Linux bridge MST (Multiple Spanning Tree) code where VLAN group pointers were being dereferenced redundantly, potentially causing memory safety issues in bridge network configurations.
Is CVE-2024-40921 being actively exploited?
No, CVE-2024-40921 is not being actively exploited in the wild, and no public exploits are currently available. However, it should still be patched as part of regular security updates.
What versions of Kernel are affected by CVE-2024-40921?
Linux kernel versions 6.9.3 through 6.9.5 are affected. The vulnerability is resolved in kernel 6.9.6 and later versions.
How do I check if my server is vulnerable to CVE-2024-40921?
Run `uname -r` to display your kernel version. If it shows 6.9.3, 6.9.4, or 6.9.5, your system is vulnerable and requires immediate kernel update.
Does Defensia detect CVE-2024-40921?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Kernel is installed on a monitored server, CVE-2024-40921 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/09f4337c27f5bdeb8646a6db91488cc2f7d537ff
- https://git.kernel.org/stable/c/36c92936e868601fa1f43da6758cf55805043509
- https://git.kernel.org/stable/c/a6cc9e9a651b9861efa068c164ee62dfba68c6ca
- https://git.kernel.org/stable/c/d2dc02775fc0c4eacaee833a0637e5958884a8e5
- https://git.kernel.org/stable/c/09f4337c27f5bdeb8646a6db91488cc2f7d537ff
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-40921. Free for 1 server.
Get started free