In the Linux kernel, the following vulnerability has been resolved:
i40e: remove read access to debugfs files
The 'command' and 'netdev_ops' debugfs files are a legacy debugging interface supported by the i40e driver since its early days by commit 02e9c290814c ("i40e: debugfs interface").
Both of these debugfs files provide a read handler which is mostly useless, and which is implemented with questionable logic. They both use a static 256 byte buffer which is initialized to the empty string. In the case of the 'command' file this buffer is literally never used and simply wastes space. In the case of the 'netdev_ops' file, the last command written is saved here.
On read, the files contents are presented as the name of the device followed by a colon and then the contents of their respective static buffer. For 'command' this will always be "<device>: ". For 'netdev_ops', this will be "<device>: <last command written>". But note the buffer is shared between all devices operated by this module. At best, it is mostly meaningless information, and at worse it could be accessed simultaneously as there doesn't appear to be any locking mechanism.
We have also recently received multiple reports for both read functions about their use of snprintf and potential overflow that could result in reading arbitrary kernel memory. For the 'command' file, this is definitely impossible, since the static buffer is always zero and never written to. For the 'netdev_ops' file, it does appear to be possible, if the user carefully crafts the command input, it will be copied into the buffer, which could be large enough to cause snprintf to truncate, which then causes the copy_to_user to read beyond the length of the buffer allocated by kzalloc.
A minimal fix would be to replace snprintf() with scnprintf() which would cap the return to the number of bytes written, preventing an overflow. A more involved fix would be to drop the mostly useless static buffers, saving 512 bytes and modifying the read functions to stop needing those as input.
Instead, lets just completely drop the read access to these files. These are debug interfaces exposed as part of debugfs, and I don't believe that dropping read access will break any script, as the provided output is pretty useless. You can find the netdev name through other more standard interfaces, and the 'netdev_ops' interface can easily result in garbage if you issue simultaneous writes to multiple devices at once.
In order to properly remove the i40e_dbg_netdev_ops_buf, we need to refactor its write function to avoid using the static buffer. Instead, use the same logic as the i40e_dbg_command_write, with an allocated buffer. Update the code to use this instead of the static buffer, and ensure we free the buffer on exit. This fixes simultaneous writes to 'netdev_ops' on multiple devices, and allows us to remove the now unused static buffer along with removing the read access.
CVSS Details
- CVSS 3.1 Base Score: 7.1
- CVSS 3.1 Vector: (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Amazon_linux_2023 | — | Upgrade kernel-modules-extra-commonUpgrade perf-debuginfoUpgrade perfUpgrade kernel-tools-develUpgrade kernelUpgrade kernel-toolsUpgrade kernel-headersUpgrade python3-perf-debuginfoUpgrade bpftool-debuginfoUpgrade python3-perfUpgrade kernel-livepatch-6.1.174-217.345Upgrade bpftoolUpgrade kernel-tools-debuginfoUpgrade kernel-develUpgrade kernel-debuginfo-common-x86_64Upgrade kernel-debuginfo-common-aarch64Upgrade kernel-debuginfoUpgrade kernel-modules-extra | Jun 9, 2026 | Oct 1, 2025 |
| Debian | — | Upgrade linux | Jul 23, 2026 | Jul 23, 2026 |
| Huawei Euleros 2_0_sp11 | — | Upgrade kernel-toolsUpgrade python3-perfUpgrade bpftoolUpgrade kernelUpgrade kernel-tools-libsUpgrade kernel-abi-stablelists | Mar 17, 2026 | Mar 17, 2026 |
| Huawei Euleros 2_0_sp12 | — | Upgrade bpftoolUpgrade kernel-tools-libsUpgrade python3-perfUpgrade kernelUpgrade kernel-toolsUpgrade kernel-abi-stablelists | Mar 17, 2026 | Mar 17, 2026 |
| Huawei Euleros 2_0_sp13 | — | Upgrade kernel-toolsUpgrade kernel-tools-libsUpgrade bpftoolUpgrade kernelUpgrade python3-perfUpgrade kernel-abi-stablelists | Feb 3, 2026 | Feb 2, 2026 |
| Oracle_linux | — | Upgrade kernel-uek | Nov 11, 2025 | Oct 1, 2025 |
| Redhat_linux | — | No solution exists | Jul 17, 2026 | Oct 1, 2025 |
| Ubuntu | — | Upgrade linux-image-realtime-6.8.1Upgrade linux-image-gcp-64kUpgrade linux-image-gkeUpgrade linux-image-oracle-6.8Upgrade linux-image-gkeopUpgrade linux-image-oem-22.04dUpgrade linux-image-gcp-64k-lts-24.04Upgrade linux-image-6.8.0-1049-nvidia-lowlatencyUpgrade linux-image-nvidia-lowlatency-64k-6.8Upgrade linux-image-xilinx-zynqmpUpgrade linux-image-gcp-64k-6.8Upgrade linux-image-6.8.0-1047-oracleUpgrade linux-image-6.8.0-1029-xilinxUpgrade linux-image-awsUpgrade linux-image-aws-lts-24.04Upgrade linux-image-xilinx-6.8Upgrade linux-image-6.8.0-1049-nvidia-64kUpgrade linux-image-aws-fips-6.8Upgrade linux-image-6.8.0-1050-aws-64kUpgrade linux-image-6.8.0-1052-gcpUpgrade linux-image-6.8.0-1052-gcp-fipsUpgrade linux-image-intel-iot-realtimeUpgrade linux-image-oracleUpgrade linux-image-realtime-hwe-22.04Upgrade linux-image-nvidia-6.8Upgrade linux-image-azure-6.8Upgrade linux-image-6.8.0-1049-nvidia-lowlatency-64kUpgrade linux-image-realtimeUpgrade linux-image-nvidia-64k-6.8Upgrade linux-image-gcp-lts-24.04Upgrade linux-image-gke-64k-6.8Upgrade linux-image-6.8.0-1050-raspiUpgrade linux-image-lowlatency-64k-6.8Upgrade linux-image-lowlatency-64k-hwe-22.04Upgrade linux-image-lowlatency-6.8Upgrade linux-image-gcp-6.8Upgrade linux-image-fipsUpgrade linux-image-nvidia-lowlatency-64kUpgrade linux-image-aws-64kUpgrade linux-image-raspi-6.8Upgrade linux-image-6.8.0-1035-gkeopUpgrade linux-image-nvidia-hwe-22.04Upgrade linux-image-6.8.0-106-generic-64kUpgrade linux-image-6.8.0-106-lowlatencyUpgrade linux-image-6.8.0-1049-nvidiaUpgrade linux-image-aws-fipsUpgrade linux-image-virtualUpgrade linux-image-generic-64k-hwe-22.04Upgrade linux-image-intel-iotgUpgrade linux-image-gcp-fipsUpgrade linux-image-virtual-hwe-22.04Upgrade linux-image-oracle-64k-6.8Upgrade linux-image-raspiUpgrade linux-image-6.8.0-1052-azure-fipsUpgrade linux-image-6.8.0-1047-oracle-64kUpgrade linux-image-6.8.0-1051-azureUpgrade linux-image-6.8.0-1048-gkeUpgrade linux-image-oracle-lts-24.04Upgrade linux-image-kvmUpgrade linux-image-genericUpgrade linux-image-nvidiaUpgrade linux-image-lowlatency-hwe-22.04Upgrade linux-image-ibmUpgrade linux-image-gcpUpgrade linux-image-nvidia-lowlatency-6.8Upgrade linux-image-aws-6.8Upgrade linux-image-6.8.0-1052-gcp-64kUpgrade linux-image-virtual-6.8Upgrade linux-image-nvidia-64kUpgrade linux-image-6.8.0-1049-ibmUpgrade linux-image-gcp-fips-6.8Upgrade linux-image-raspi-realtimeUpgrade linux-image-lowlatencyUpgrade linux-image-nvidia-lowlatencyUpgrade linux-image-lowlatency-64kUpgrade linux-image-ibm-lts-24.04Upgrade linux-image-gke-64kUpgrade linux-image-generic-lpaeUpgrade linux-image-azure-lts-24.04Upgrade linux-image-azure-fipsUpgrade linux-image-6.8.0-106-lowlatency-64kUpgrade linux-image-xilinxUpgrade linux-image-6.8.0-1050-aws-fipsUpgrade linux-image-gke-6.8Upgrade linux-image-6.8.0-106-fipsUpgrade linux-image-raspi-realtime-6.8Upgrade linux-image-gkeop-6.8Upgrade linux-image-generic-64kUpgrade linux-image-aws-64k-6.8Upgrade linux-image-nvidia-64k-hwe-22.04Upgrade linux-image-azure-fips-6.8Upgrade linux-image-6.8.0-1050-awsUpgrade linux-image-ibm-classicUpgrade linux-image-azureUpgrade linux-image-oracle-64kUpgrade linux-image-oem-22.04cUpgrade linux-image-aws-64k-lts-24.04Upgrade linux-image-6.8.0-2040-raspi-realtimeUpgrade linux-image-generic-64k-6.8Upgrade linux-image-generic-hwe-22.04Upgrade linux-image-6.8.0-1048-gke-64kUpgrade linux-image-oracle-64k-lts-24.04Upgrade linux-image-oem-22.04Upgrade linux-image-6.8.0-106-genericUpgrade linux-image-fips-6.8Upgrade linux-image-6.8.1-1045-realtimeUpgrade linux-image-generic-6.8Upgrade linux-image-ibm-6.8Upgrade linux-image-oem-22.04bUpgrade linux-image-oem-22.04a | Mar 17, 2026 | Oct 1, 2025 |
| Vmware Photon_os | — | Use 'tdnf update' to upgrade all packages to the latest version. | Feb 9, 2026 | Oct 1, 2025 |
Prioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub