net: hibmcge: fix the division by zero issue
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.15.116.16.26.17In 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.
From the CVE record · Linux
The Linux kernel’s hibmcge driver can divide by zero when debugfs reads queue usage while the network port is down and the queue has been released. A user able to trigger that read may encounter the error; the input does not specify authentication requirements or any remote attack path.
Engineers running Linux kernels with the hibmcge driver should check their kernel versions; affected versions are not specified.