CVE-2025-37911 bnxt_en: Fix out-of-bound memcpy() during ethtool -w
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
- Technology
- Linux KernelUbuntuDebian
Description
In the Linux kernel, the following vulnerability has been resolved:
bnxt_en: Fix out-of-bound memcpy() during ethtool -w
When retrieving the FW coredump using ethtool, it can sometimes cause
memory corruption:
BUG: KFENCE: memory corruption in __bnxt_get_coredump+0x3ef/0x670 [bnxt_en]
Corrupted memory at 0x000000008f0f30e8 [ ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ] (in kfence-#45):
__bnxt_get_coredump+0x3ef/0x670 [bnxt_en]
ethtool_get_dump_data+0xdc/0x1a0
__dev_ethtool+0xa1e/0x1af0
dev_ethtool+0xa8/0x170
dev_ioctl+0x1b5/0x580
sock_do_ioctl+0xab/0xf0
sock_ioctl+0x1ce/0x2e0
__x64_sys_ioctl+0x87/0xc0
do_syscall_64+0x5c/0xf0
entry_SYSCALL_64_after_hwframe+0x78/0x80
...
This happens when copying the coredump segment list in
bnxt_hwrm_dbg_dma_data() with the HWRM_DBG_COREDUMP_LIST FW command.
The info->dest_buf buffer is allocated based on the number of coredump
segments returned by the FW. The segment list is then DMA'ed by
the FW and the length of the DMA is returned by FW. The driver then
copies this DMA'ed segment list to info->dest_buf.
In some cases, this DMA length may exceed the info->dest_buf length
and cause the above BUG condition. Fix it by capping the copy
length to not exceed the length of info->dest_buf. The extra
DMA data contains no useful information.
This code path is shared for the HWRM_DBG_COREDUMP_LIST and the
HWRM_DBG_COREDUMP_RETRIEVE FW commands. The buffering is different
for these 2 FW commands. To simplify the logic, we need to move
the line to adjust the buffer length for HWRM_DBG_COREDUMP_RETRIEVE
up, so that the new check to cap the copy length will work for both
commands.
Upgrade path
11 packages: 10 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| azure linux kernel(Azure Linux 3.0) | < 6.6.92.2-1 | 6.6.92.2-1 | Fixed |
| debian/linux(Debian 12) | < 6.1.140-1; = 6.1.27-1; = 6.1.37-1; = 6.1.38-1 +37 more | 6.1.140-1 | Fixed |
| debian/linux(Debian 13) | < 6.12.29-1 | 6.12.29-1 | Fixed |
| debian/linux(Debian 14) | < 6.12.29-1 | 6.12.29-1 | Fixed |
| Linux kernel | < 5.15.182; < 6.1.138; < 6.6.90; < 6.12.28 +27 more | 4.20, 4d69864915a3a052538e4ba76cd6fd77cfc64ebe, 5.5, 5.15.182, 6.1.138, 6.6.90, 6.12.28, 6.14.6, 6.15, 6b87bd94f34370bbf1dfa59352bed8efab5bf419, 44d81a9ebf0cad92512e0ffdf7412bfe20db66ec, 69b10dd23ab826d0c7f2d9ab311842251978d0c1, 43292b83424158fa6ec458799f3cb9c54d18c484, 44807af79efd0d78fa36383dd865ddfe7992c0a6 | Fixed |
| ubuntu/linux(Ubuntu 22.04) | < 5.15.0-144.157 | 5.15.0-144.157 | Fixed |
| ubuntu/linux(Ubuntu 24.04) | < 6.8.0-100.100 | 6.8.0-100.100 | Fixed |
| ubuntu/linux-kvm(Ubuntu 22.04) | < 5.15.0-1084.89 | 5.15.0-1084.89 | Fixed |
| ubuntu/linux-raspi(Ubuntu 22.04) | < 5.15.0-1083.86 | 5.15.0-1083.86 | Fixed |
| ubuntu/linux-raspi(Ubuntu 24.04) | < 6.8.0-1047.51 | 6.8.0-1047.51 | Fixed |
| debian linux | = 11.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| azure linux kernel(Azure Linux:3.0) | < 6.6.92.2-1 | 6.6.92.2-1 |
| debian/linux(Debian:12) | < 6.1.140-1 | 6.1.140-1 |
| debian/linux(Debian:12) | = 6.1.106-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.106-2 | No fix listed |
| debian/linux(Debian:12) | = 6.1.106-3 | No fix listed |
| debian/linux(Debian:12) | = 6.1.112-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.115-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.119-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.123-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.124-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.128-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.129-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.133-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.135-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.137-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.139-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.27-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.37-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-2 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-2~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-3 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-4 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-4~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.52-1 | No fix listed |
Show 56 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/linux(Debian:12) | = 6.1.55-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.55-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.64-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.66-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.67-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.69-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.69-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.76-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.76-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.82-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.85-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.90-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.90-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.94-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.94-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.98-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.99-1 | No fix listed |
| debian/linux(Debian:13) | < 6.12.29-1 | 6.12.29-1 |
| debian/linux(Debian:14) | < 6.12.29-1 | 6.12.29-1 |
| Linux kernel | >= c74751f4c39232c31214ec6a3bc1c7e62f5c728b, < 69b10dd23ab826d0c7f2d9ab311842251978d0c1 | 69b10dd23ab826d0c7f2d9ab311842251978d0c1 |
| Linux kernel | >= c74751f4c39232c31214ec6a3bc1c7e62f5c728b, < 43292b83424158fa6ec458799f3cb9c54d18c484 | 43292b83424158fa6ec458799f3cb9c54d18c484 |
| Linux kernel | >= c74751f4c39232c31214ec6a3bc1c7e62f5c728b, < 4d69864915a3a052538e4ba76cd6fd77cfc64ebe | 4d69864915a3a052538e4ba76cd6fd77cfc64ebe |
| Linux kernel | >= c74751f4c39232c31214ec6a3bc1c7e62f5c728b, < 44807af79efd0d78fa36383dd865ddfe7992c0a6 | 44807af79efd0d78fa36383dd865ddfe7992c0a6 |
| Linux kernel | >= c74751f4c39232c31214ec6a3bc1c7e62f5c728b, < 44d81a9ebf0cad92512e0ffdf7412bfe20db66ec | 44d81a9ebf0cad92512e0ffdf7412bfe20db66ec |
| Linux kernel | >= c74751f4c39232c31214ec6a3bc1c7e62f5c728b, < 6b87bd94f34370bbf1dfa59352bed8efab5bf419 | 6b87bd94f34370bbf1dfa59352bed8efab5bf419 |
| Linux kernel | = 4bf973a1f84aefb64750bdb3afe72d54de3199d7 | No fix listed |
| Linux kernel | = a76837dd731b68cc3b5690470bc9efa2a8e3801a | No fix listed |
| Linux kernel | >= 4.19.95, < 4.20 | 4.20 |
| Linux kernel | >= 5.4.8, < 5.5 | 5.5 |
| Linux kernel | = 5.5 | No fix listed |
| Linux kernel | < 5.15.182 | 5.15.182 |
| Linux kernel | < 6.1.138 | 6.1.138 |
| Linux kernel | < 6.6.90 | 6.6.90 |
| Linux kernel | < 6.12.28 | 6.12.28 |
| Linux kernel | < 6.14.6 | 6.14.6 |
| Linux kernel | < 6.15 | 6.15 |
| ubuntu/linux(Ubuntu:22.04) | < 5.15.0-144.157 | 5.15.0-144.157 |
| ubuntu/linux-kvm(Ubuntu:22.04) | < 5.15.0-1084.89 | 5.15.0-1084.89 |
| ubuntu/linux-raspi(Ubuntu:22.04) | < 5.15.0-1083.86 | 5.15.0-1083.86 |
| ubuntu/linux(Ubuntu:24.04) | < 6.8.0-100.100 | 6.8.0-100.100 |
| ubuntu/linux-raspi(Ubuntu:24.04) | < 6.8.0-1047.51 | 6.8.0-1047.51 |
| Linux kernel | >= 5.5.1, < 5.15.182 | 5.15.182 |
| Linux kernel | >= 5.16, < 6.1.138 | 6.1.138 |
| Linux kernel | >= 6.2, < 6.6.90 | 6.6.90 |
| Linux kernel | >= 6.7, < 6.12.28 | 6.12.28 |
| Linux kernel | >= 6.13, < 6.14.6 | 6.14.6 |
| Linux kernel | = 5.5-rc3 | No fix listed |
| Linux kernel | = 5.5-rc4 | No fix listed |
| Linux kernel | = 5.5-rc5 | No fix listed |
| Linux kernel | = 5.5-rc6 | No fix listed |
| Linux kernel | = 5.5-rc7 | No fix listed |
| Linux kernel | = 6.15-rc1 | No fix listed |
| Linux kernel | = 6.15-rc2 | No fix listed |
| Linux kernel | = 6.15-rc3 | No fix listed |
| Linux kernel | = 6.15-rc4 | No fix listed |
| debian linux | = 11.0 | No fix listed |
References
- MSRC Security Update Guide vendor-advisory
- CBL-Mariner Releases vendor-advisory
- Debian Security Tracker CVE-2025-37911 vendor-advisory
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- lists.debian.org mailing-list
- Ubuntu CVE tracker vendor-advisory
- USN-7649-1 vendor-advisory
- USN-7650-1 vendor-advisory
- USN-7654-1 vendor-advisory
- USN-7654-2 vendor-advisory
- USN-7654-3 vendor-advisory
- USN-7655-1 vendor-advisory
- USN-7649-2 vendor-advisory
- USN-7654-4 vendor-advisory
- USN-7665-1 vendor-advisory
- USN-7665-2 vendor-advisory
- USN-7654-5 vendor-advisory
- USN-7686-1 vendor-advisory
- USN-7711-1 vendor-advisory
- USN-7712-1 vendor-advisory
- USN-7721-1 vendor-advisory
- USN-7712-2 vendor-advisory
- USN-8028-1 vendor-advisory
- USN-8028-2 vendor-advisory
- USN-8031-1 vendor-advisory
- USN-8028-3 vendor-advisory
- USN-8028-4 vendor-advisory
- USN-8028-5 vendor-advisory
- USN-8031-2 vendor-advisory
- USN-8028-6 vendor-advisory
- USN-8031-3 vendor-advisory
- USN-8052-1 vendor-advisory
- USN-8028-7 vendor-advisory
- USN-8028-8 vendor-advisory
- USN-8052-2 vendor-advisory
- USN-8074-1 vendor-advisory
- USN-8074-2 vendor-advisory
- USN-8126-1 vendor-advisory
- www.cve.org
- ENISA EUVD EUVD-2025-15943 third-party-advisory