| 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-50055: driver core: bus: Fix double free in driver API bus_register() |
| |
| Description |
| =========== |
| |
| In the Linux kernel, the following vulnerability has been resolved: |
| |
| driver core: bus: Fix double free in driver API bus_register() |
| |
| For bus_register(), any error which happens after kset_register() will |
| cause that @priv are freed twice, fixed by setting @priv with NULL after |
| the first free. |
| |
| The Linux kernel CVE team has assigned CVE-2024-50055 to this issue. |
| |
| |
| Affected and fixed versions |
| =========================== |
| |
| Fixed in 5.4.291 with commit 87bc3cb23c56de2c5e14a58d87cf953e7a2508f8 |
| Fixed in 5.10.231 with commit 5be4bc1c73ca389a96d418a52054d897c6fe6d21 |
| Fixed in 5.15.174 with commit 4797953712214ea57a437443bb0ad6d1e0646d70 |
| Fixed in 6.1.120 with commit fc1f391a71a3ee88291e205cffd673fe24d99266 |
| Fixed in 6.6.57 with commit d885c464c25018b81a6b58f5d548fc2e3ef87dd1 |
| Fixed in 6.11.4 with commit 9ce15f68abedfae7ae0a35e95895aeddfd0f0c6a |
| Fixed in 6.12 with commit bfa54a793ba77ef696755b66f3ac4ed00c7d1248 |
| |
| 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-50055 |
| 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/base/bus.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/87bc3cb23c56de2c5e14a58d87cf953e7a2508f8 |
| https://git.kernel.org/stable/c/5be4bc1c73ca389a96d418a52054d897c6fe6d21 |
| https://git.kernel.org/stable/c/4797953712214ea57a437443bb0ad6d1e0646d70 |
| https://git.kernel.org/stable/c/fc1f391a71a3ee88291e205cffd673fe24d99266 |
| https://git.kernel.org/stable/c/d885c464c25018b81a6b58f5d548fc2e3ef87dd1 |
| https://git.kernel.org/stable/c/9ce15f68abedfae7ae0a35e95895aeddfd0f0c6a |
| https://git.kernel.org/stable/c/bfa54a793ba77ef696755b66f3ac4ed00c7d1248 |