net: dsa: sja1105: round up PTP perout pin duration
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 747e5eb31d59d047972a0dab03e5430fe4264332 · < 410629528067029096dba7ad7bc49e4a5e92708d| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net: dsa: sja1105: round up PTP perout pin duration
pin_duration is converted from the user-provided period to SJA1105 clock ticks and is later passed as the cycle_time argument to future_base_time().
Very small period values may become zero after the conversion, which can lead to a division by zero in future_base_time().
Round zero pin_duration up to 1 tick so that the smallest unsupported periods use the minimum non-zero hardware duration instead of passing zero to future_base_time().
From the CVE record · Linux
The Linux kernel’s sja1105 PTP perout handling can convert a very small user-provided period to zero clock ticks. When that value reaches future_base_time(), it can cause a division by zero. Triggering the issue requires providing a very small period; the input does not specify authentication requirements.
Engineers running Linux kernels that use the sja1105 driver should check whether their kernel is affected; no affected versions are specified.