Description (CNA)
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().
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected 747e5eb31d59d047972a0dab03e5430fe4264332 before aaf446099ca497c8d9a8e511fedf5d0e547bf8ec; affected 747e5eb31d59d047972a0dab03e5430fe4264332 before 201dcbbfb27f3db85c8cf125a75f3164a83ceb32; affected 747e5eb31d59d047972a0dab03e5430fe4264332 before 9952291db7125b8a62bf19800b93dcac81fc70c0; affected 747e5eb31d59d047972a0dab03e5430fe4264332 before fc62bfd30d30af07356f0f7121c826e1e753582f; affected 747e5eb31d59d047972a0dab03e5430fe4264332 before 28d13a89a211cc07caeef32069eaa847131b7351; affected 747e5eb31d59d047972a0dab03e5430fe4264332 before 410629528067029096dba7ad7bc49e4a5e92708d; affected 747e5eb31d59d047972a0dab03e5430fe4264332 before 09efce96c909dff1a9317ec3714b7ddb4751b7af; affected 747e5eb31d59d047972a0dab03e5430fe4264332 before aee5836273b07b439fb245fb43930664d8b78518 |
| Linux / Linux | affected 5.7; unaffected 0 before 5.7; unaffected 5.10.261 through 5.10.*; unaffected 5.15.212 through 5.15.*; unaffected 6.1.178 through 6.1.*; unaffected 6.6.145 through 6.6.*; unaffected 6.12.97 through 6.12.*; unaffected 6.18.40 through 6.18.*; unaffected 7.1.5 through 7.1.*; unaffected 7.2 through * |
CWE
No CWE identifiers supplied.
References
- https://git.kernel.org/stable/c/aaf446099ca497c8d9a8e511fedf5d0e547bf8ec
- https://git.kernel.org/stable/c/201dcbbfb27f3db85c8cf125a75f3164a83ceb32
- https://git.kernel.org/stable/c/9952291db7125b8a62bf19800b93dcac81fc70c0
- https://git.kernel.org/stable/c/fc62bfd30d30af07356f0f7121c826e1e753582f
- https://git.kernel.org/stable/c/28d13a89a211cc07caeef32069eaa847131b7351
- https://git.kernel.org/stable/c/410629528067029096dba7ad7bc49e4a5e92708d
- https://git.kernel.org/stable/c/09efce96c909dff1a9317ec3714b7ddb4751b7af
- https://git.kernel.org/stable/c/aee5836273b07b439fb245fb43930664d8b78518