| 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-57887: drm: adv7511: Fix use-after-free in adv7533_attach_dsi() |
| |
| Description |
| =========== |
| |
| In the Linux kernel, the following vulnerability has been resolved: |
| |
| drm: adv7511: Fix use-after-free in adv7533_attach_dsi() |
| |
| The host_node pointer was assigned and freed in adv7533_parse_dt(), and |
| later, adv7533_attach_dsi() uses the same. Fix this use-after-free issue |
| by dropping of_node_put() in adv7533_parse_dt() and calling of_node_put() |
| in error path of probe() and also in the remove(). |
| |
| The Linux kernel CVE team has assigned CVE-2024-57887 to this issue. |
| |
| |
| Affected and fixed versions |
| =========================== |
| |
| Issue introduced in 4.8 with commit 1e4d58cd7f888522d16f221d628356befbb08468 and fixed in 5.10.234 with commit acec80d9f126cd3fa764bbe3d96bc0cb5cd2b087 |
| Issue introduced in 4.8 with commit 1e4d58cd7f888522d16f221d628356befbb08468 and fixed in 6.1.125 with commit d208571943ffddc438a7ce533d5d0b9219806242 |
| Issue introduced in 4.8 with commit 1e4d58cd7f888522d16f221d628356befbb08468 and fixed in 6.6.70 with commit 1f49aaf55652580ae63ab83d67211fe6a55d83dc |
| Issue introduced in 4.8 with commit 1e4d58cd7f888522d16f221d628356befbb08468 and fixed in 6.12.9 with commit ca9d077350fa21897de8bf64cba23b198740aab5 |
| Issue introduced in 4.8 with commit 1e4d58cd7f888522d16f221d628356befbb08468 and fixed in 6.13 with commit 81adbd3ff21c1182e06aa02c6be0bfd9ea02d8e8 |
| |
| 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-57887 |
| 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/gpu/drm/bridge/adv7511/adv7511_drv.c |
| drivers/gpu/drm/bridge/adv7511/adv7533.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/acec80d9f126cd3fa764bbe3d96bc0cb5cd2b087 |
| https://git.kernel.org/stable/c/d208571943ffddc438a7ce533d5d0b9219806242 |
| https://git.kernel.org/stable/c/1f49aaf55652580ae63ab83d67211fe6a55d83dc |
| https://git.kernel.org/stable/c/ca9d077350fa21897de8bf64cba23b198740aab5 |
| https://git.kernel.org/stable/c/81adbd3ff21c1182e06aa02c6be0bfd9ea02d8e8 |