CVE-2024-53081: media: ar0521: don't overflow when checking PLL values
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
media: ar0521: don't overflow when checking PLL values
The PLL checks are comparing 64 bit integers with 32 bit ones, as reported by Coverity. Depending on the values of the variables, this may underflow.
Fix it ensuring that both sides of the expression are u64.
The Linux kernel CVE team has assigned CVE-2024-53081 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.0 with commit 852b50aeed15 and fixed in 6.1.117 with commit 5e1523076acf Issue introduced in 6.0 with commit 852b50aeed15 and fixed in 6.6.61 with commit a244b82d0ae6 Issue introduced in 6.0 with commit 852b50aeed15 and fixed in 6.11.8 with commit 97ed0c0332d5 Issue introduced in 6.0 with commit 852b50aeed15 and fixed in 6.12 with commit 438d3085ba5b
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2024-53081
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/media/i2c/ar0521.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/5e1523076acf95b4ea68d19b6f27e6891267cc24 https://git.kernel.org/stable/c/a244b82d0ae60326901f2b50c15e3118298b7ecd https://git.kernel.org/stable/c/97ed0c0332d5525653668b31acf62ff1e6b50784 https://git.kernel.org/stable/c/438d3085ba5b8b5bfa5290faa594e577f6ac9aa7