CVE-2024-43839·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: bna: adjust 'name' buf size of bna_tcb and bna_ccb structures To have enough space to write all possible sprintf() args. Currently 'name' size is 16, but the first '%s' specifier may already need at least 16 characters, since 'bnad->netdev->name' is used there. For '%d' specifiers, assume that they require: * 1 char for 'tx_id + tx_info->tcb[i]->id' sum, BNAD_MAX_TXQ_PER_TX is 8 * 2 chars for 'rx_id + rx_info->rx_ctrl[i].ccb->id', BNAD_MAX_RXP_PER_RX is 16 And replace sprintf with snprintf. Detected using the static analysis tool - Svace.
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.10.3
- Published
- 2024-08-17
Affected versions
From: 6.7
Until: 6.10.3
Fixed in: 6.10.3
How to fix this CVE
Update your Linux kernel to version 6.10.3 or later to patch a buffer overflow vulnerability in the Broadcom BNA network driver. This vulnerability could allow local users with sufficient privileges to trigger memory corruption through improper string formatting in the driver's internal data structures. Apply the kernel update through your distribution's package manager and reboot the system to activate the fix.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check your current kernel version by running `uname -r` and verify if it falls within the vulnerable range (6.7 to 6.10.2)
- Step 2: Identify if the Broadcom BNA driver is loaded by running `lsmod | grep bna` or checking `ethtool -i <interface_name>` for BNA driver presence
- Step 3: Search system logs for BNA driver errors using `dmesg | grep -i bna` or `grep -i bna /var/log/kern.log` for any buffer-related warnings or memory corruption messages
- Step 4: After updating, verify the new kernel version with `uname -r` and confirm it is 6.10.3 or later, then validate the BNA driver loaded without errors using `dmesg | tail -20`
FAQ
What is CVE-2024-43839?
CVE-2024-43839 is a buffer overflow vulnerability in the Linux kernel's Broadcom BNA network driver where the name buffer in the bna_tcb and bna_ccb structures is too small to safely accommodate sprintf() string formatting operations, potentially leading to memory corruption.
Is CVE-2024-43839 being actively exploited?
No, CVE-2024-43839 is not currently listed in the CISA Known Exploited Vulnerabilities catalog and no public exploits are available, though local privilege escalation remains a concern.
What versions of Kernel are affected by CVE-2024-43839?
Linux kernel versions 6.7 through 6.10.2 are affected. The vulnerability is patched in kernel version 6.10.3 and later.
How do I check if my server is vulnerable to CVE-2024-43839?
Run `uname -r` to check your kernel version; if it outputs a version between 6.7 and 6.10.2 and you have a Broadcom BNA network interface (check with `ethtool -i eth0`), your system is vulnerable.
Does Defensia detect CVE-2024-43839?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Kernel is installed on a monitored server, CVE-2024-43839 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/6ce46045f9b90d952602e2c0b8886cfadf860bf1
- https://git.kernel.org/stable/c/6d20c4044ab4d0e6a99aa35853e66f0aed5589e3
- https://git.kernel.org/stable/c/ab748dd10d8742561f2980fea08ffb4f0cacfdef
- https://git.kernel.org/stable/c/b0ff0cd0847b03c0a0abe20cfa900eabcfcb9e43
- https://git.kernel.org/stable/c/c90b1cd7758fd4839909e838ae195d19f8065d76
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-43839. Free for 1 server.
Get started free