| 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-58003: media: i2c: ds90ub9x3: Fix extra fwnode_handle_put() |
| |
| Description |
| =========== |
| |
| In the Linux kernel, the following vulnerability has been resolved: |
| |
| media: i2c: ds90ub9x3: Fix extra fwnode_handle_put() |
| |
| The ub913 and ub953 drivers call fwnode_handle_put(priv->sd.fwnode) as |
| part of their remove process, and if the driver is removed multiple |
| times, eventually leads to put "overflow", possibly causing memory |
| corruption or crash. |
| |
| The fwnode_handle_put() is a leftover from commit 905f88ccebb1 ("media: |
| i2c: ds90ub9x3: Fix sub-device matching"), which changed the code |
| related to the sd.fwnode, but missed removing these fwnode_handle_put() |
| calls. |
| |
| The Linux kernel CVE team has assigned CVE-2024-58003 to this issue. |
| |
| |
| Affected and fixed versions |
| =========================== |
| |
| Issue introduced in 6.6 with commit 905f88ccebb14e42bcd19455b0d9c0d4808f1897 and fixed in 6.6.78 with commit 474d7baf91d37bc411fa60de5bbf03c9dd82e18a |
| Issue introduced in 6.6 with commit 905f88ccebb14e42bcd19455b0d9c0d4808f1897 and fixed in 6.12.14 with commit f4e4373322f8d4c19721831f7fb989e52d30dab0 |
| Issue introduced in 6.6 with commit 905f88ccebb14e42bcd19455b0d9c0d4808f1897 and fixed in 6.13.3 with commit 70743d6a8b256225675711e7983825f1be86062d |
| Issue introduced in 6.6 with commit 905f88ccebb14e42bcd19455b0d9c0d4808f1897 and fixed in 6.14 with commit 60b45ece41c5632a3a3274115a401cb244180646 |
| |
| 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-58003 |
| 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/ds90ub913.c |
| drivers/media/i2c/ds90ub953.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/474d7baf91d37bc411fa60de5bbf03c9dd82e18a |
| https://git.kernel.org/stable/c/f4e4373322f8d4c19721831f7fb989e52d30dab0 |
| https://git.kernel.org/stable/c/70743d6a8b256225675711e7983825f1be86062d |
| https://git.kernel.org/stable/c/60b45ece41c5632a3a3274115a401cb244180646 |