5.5medium
net: hibmcge: fix the division by zero issue
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.16% (higher than 5% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: net: hibmcge: fix the division by zero issue When the network port is down, the queue is released, and ring->len is 0. In debugfs, hbg_get_queue_used_num() will be called, which may lead to a division by zero issue. This patch adds a check, if ring->len is 0, hbg_get_queue_used_num() directly returns 0.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 40735e7543f94fc88f58d94fd5f88daa4a2f2c6e before c945e1ad4f3b77166a3215dabc0c6c980d4a9c73, from 40735e7543f94fc88f58d94fd5f88daa4a2f2c6e before 475e06113c615dafd44262d6d6bd37786f7f4206, from 40735e7543f94fc88f58d94fd5f88daa4a2f2c6e before 7004b26f0b64331143eb0b312e77a357a11427ce, 6.13 Not affected: before 6.13, from 6.15.11 up to 6.15.*, from 6.16.2 up to 6.16.*, from 6.17 up to * | CVE List |
| linux linux_kernel | from 6.13 before 6.15.11, from 6.16 before 6.16.2, 6.17 | NVD |
Classification
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: net: hibmcge: fix the division by zero issue When the network port is down, the queue is released, and ring->len is 0. In debugfs, hbg_get_queue_used_num() will be called, which may lead to a division by zero issue. This patch adds a check, if ring->len is 0, hbg_get_queue_used_num() directly returns 0.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: net: hibmcge: corrige el problema de división por cero Cuando el puerto de red está inactivo, la cola es liberada, y ring->len es 0. En debugfs, se llamará a hbg_get_queue_used_num(), lo que puede llevar a un problema de división por cero. Este parche añade una comprobación, si ring->len es 0, hbg_get_queue_used_num() devuelve directamente 0.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-38719 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2025-38719 changed 2026-10-19 | Public domain |