CVE-2024-40920·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: net: bridge: mst: fix suspicious rcu usage in br_mst_set_state I converted br_mst_set_state to RCU to avoid a vlan use-after-free but forgot to change the vlan group dereference helper. Switch to vlan group RCU deref helper to fix the suspicious rcu usage warning.
- Severity
- high
- 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 this RCU synchronization issue in the bridge MST (Multiple Spanning Tree) implementation. This vulnerability affects kernel versions 6.9.3 through 6.9.6 and manifests as improper memory access patterns in VLAN group handling during bridge state management. Applying the kernel update will ensure proper RCU locking semantics are used when accessing VLAN group data structures.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check your current kernel version with 'uname -r' and compare against the affected range 6.9.3-6.9.6
- Step 2: Verify if bridge networking is enabled by checking 'lsmod | grep bridge' and confirm MST configuration with 'bridge mdb show'
- Step 3: Search kernel logs for RCU warnings with 'dmesg | grep -i "suspicious rcu\|rcu_read_lock"' or 'journalctl -k | grep -i "suspicious rcu"'
- Step 4: After patching, confirm the new kernel version with 'uname -r' and reboot if necessary with 'sudo reboot'
FAQ
What is CVE-2024-40920?
This vulnerability is an RCU (Read-Copy-Update) synchronization bug in the Linux kernel's bridge MST code where VLAN group data was being accessed without proper RCU locking protection, potentially causing use-after-free conditions when bridge state changes occur.
Is CVE-2024-40920 being actively exploited?
No, this vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog and no public exploits are currently available. It is primarily a kernel stability and memory safety issue rather than a direct attack vector.
What versions of Kernel are affected by CVE-2024-40920?
Linux kernel versions 6.9.3, 6.9.4, 6.9.5, and 6.9.6 are affected. The vulnerability was fixed in kernel version 6.9.6 and later stable releases.
How do I check if my server is vulnerable to CVE-2024-40920?
Run 'uname -r' to display your kernel version. If the output shows 6.9.3, 6.9.4, or 6.9.5, your system is vulnerable. If it shows 6.9.6 or higher, or a different kernel series, you are not affected.
Does Defensia detect CVE-2024-40920?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel package is installed on a monitored server, CVE-2024-40920 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/406bfc04b01ee47e4c626f77ecc7d9f85135b166
- https://git.kernel.org/stable/c/546ceb1dfdac866648ec959cbc71d9525bd73462
- https://git.kernel.org/stable/c/7caefa2771722e65496d85b62e1dc4442b7d1345
- https://git.kernel.org/stable/c/caaa2129784a04dcade0ea92c12e6ff90bbd23d8
- https://git.kernel.org/stable/c/406bfc04b01ee47e4c626f77ecc7d9f85135b166
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-40920. Free for 1 server.
Get started free