| From bippy-5f407fcff5a0 Mon Sep 17 00:00:00 2001 |
| From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
| To: <linux-cve-announce@vger.kernel.org> |
| Reply-to: <cve@kernel.org>, <linux-kernel@vger.kernel.org> |
| Subject: CVE-2024-57904: iio: adc: at91: call input_free_device() on allocated iio_dev |
| |
| Description |
| =========== |
| |
| In the Linux kernel, the following vulnerability has been resolved: |
| |
| iio: adc: at91: call input_free_device() on allocated iio_dev |
| |
| Current implementation of at91_ts_register() calls input_free_deivce() |
| on st->ts_input, however, the err label can be reached before the |
| allocated iio_dev is stored to st->ts_input. Thus call |
| input_free_device() on input instead of st->ts_input. |
| |
| The Linux kernel CVE team has assigned CVE-2024-57904 to this issue. |
| |
| |
| Affected and fixed versions |
| =========================== |
| |
| Issue introduced in 3.16 with commit 84882b060301c35ab7e2c1ef355b0bd06b764195 and fixed in 5.4.290 with commit b549c90bfe66f704878aa1e57b30ba15dab71935 |
| Issue introduced in 3.16 with commit 84882b060301c35ab7e2c1ef355b0bd06b764195 and fixed in 5.10.234 with commit ac8d932e3214c10ec641ad45a253929a596ead62 |
| Issue introduced in 3.16 with commit 84882b060301c35ab7e2c1ef355b0bd06b764195 and fixed in 5.15.177 with commit 028a1ba8e3bae593d701aee4f690ce7c195b67d6 |
| Issue introduced in 3.16 with commit 84882b060301c35ab7e2c1ef355b0bd06b764195 and fixed in 6.1.125 with commit 25ef52f1c15db67d890b80203a911b9a57b0bf71 |
| Issue introduced in 3.16 with commit 84882b060301c35ab7e2c1ef355b0bd06b764195 and fixed in 6.6.72 with commit 09e067e3c83e0695d338e8a26916e3c2bc44be02 |
| Issue introduced in 3.16 with commit 84882b060301c35ab7e2c1ef355b0bd06b764195 and fixed in 6.12.10 with commit d115b7f3ddc03b38bb7e8754601556fe9b4fc034 |
| Issue introduced in 3.16 with commit 84882b060301c35ab7e2c1ef355b0bd06b764195 and fixed in 6.13 with commit de6a73bad1743e9e81ea5a24c178c67429ff510b |
| |
| 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-57904 |
| 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/iio/adc/at91_adc.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/b549c90bfe66f704878aa1e57b30ba15dab71935 |
| https://git.kernel.org/stable/c/ac8d932e3214c10ec641ad45a253929a596ead62 |
| https://git.kernel.org/stable/c/028a1ba8e3bae593d701aee4f690ce7c195b67d6 |
| https://git.kernel.org/stable/c/25ef52f1c15db67d890b80203a911b9a57b0bf71 |
| https://git.kernel.org/stable/c/09e067e3c83e0695d338e8a26916e3c2bc44be02 |
| https://git.kernel.org/stable/c/d115b7f3ddc03b38bb7e8754601556fe9b4fc034 |
| https://git.kernel.org/stable/c/de6a73bad1743e9e81ea5a24c178c67429ff510b |