net: stmmac: make sure that ptp_rate is not 0 before configuring EST
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 8572aec3d0dc43045254fd1bf581fb980bfdbc4b · < cbefe2ffa7784525ec5d008ba87c7add19ec631a| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net: stmmac: make sure that ptp_rate is not 0 before configuring EST
If the ptp_rate recorded earlier in the driver happens to be 0, this bogus value will propagate up to EST configuration, where it will trigger a division by 0.
Prevent this division by 0 by adding the corresponding check and error code.
From the CVE record · Linux
The Linux kernel’s stmmac driver can divide by zero during EST configuration if its recorded ptp_rate is 0. The input does not establish whether an attacker can trigger this condition or specify access or user-interaction requirements.
Engineers running Linux kernels with the stmmac driver should check their deployments; affected versions are not specified.