# CVE-2025-38719: net: hibmcge: fix the division by zero issue

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2025-09-04T15:33:13.213Z
- Modified: 2026-10-19T21:10:00.160Z
- Weaknesses: CWE-369
- 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.

(As written by CVE List.)

## Affected

- 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 *)
- linux linux_kernel: from 6.13 before 6.15.11; from 6.16 before 6.16.2; 6.17

## References

- <https://git.kernel.org/stable/c/c945e1ad4f3b77166a3215dabc0c6c980d4a9c73> (patch)
- <https://git.kernel.org/stable/c/475e06113c615dafd44262d6d6bd37786f7f4206> (patch)
- <https://git.kernel.org/stable/c/7004b26f0b64331143eb0b312e77a357a11427ce> (patch)

## Sources

- CVE List: [CVE-2025-38719](https://www.cve.org/CVERecord?id=CVE-2025-38719), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2025-38719](https://nvd.nist.gov/vuln/detail/CVE-2025-38719), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2025-38719 · Whole record: https://cve.day/CVE-2025-38719.json · Rebuilt by cve.day 2026-11-25T22:59:04.158Z
