[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2024122717-CVE-2024-56573-f5d2@gregkh>
Date: Fri, 27 Dec 2024 15:23:24 +0100
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Subject: CVE-2024-56573: efi/libstub: Free correct pointer on failure
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
efi/libstub: Free correct pointer on failure
cmdline_ptr is an out parameter, which is not allocated by the function
itself, and likely points into the caller's stack.
cmdline refers to the pool allocation that should be freed when cleaning
up after a failure, so pass this instead to free_pool().
The Linux kernel CVE team has assigned CVE-2024-56573 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.2 with commit 42c8ea3dca094ab82776ca706fb7a9cbe8ac3dc9 and fixed in 6.6.64 with commit d173aee5709bd0994d216d60589ec67f8b11376a
Issue introduced in 6.2 with commit 42c8ea3dca094ab82776ca706fb7a9cbe8ac3dc9 and fixed in 6.12.4 with commit eaafbcf0a5782ae412ca7de12ef83fc48ccea4cf
Issue introduced in 6.2 with commit 42c8ea3dca094ab82776ca706fb7a9cbe8ac3dc9 and fixed in 6.13-rc1 with commit 06d39d79cbd5a91a33707951ebf2512d0e759847
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-56573
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/firmware/efi/libstub/efi-stub.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/d173aee5709bd0994d216d60589ec67f8b11376a
https://git.kernel.org/stable/c/eaafbcf0a5782ae412ca7de12ef83fc48ccea4cf
https://git.kernel.org/stable/c/06d39d79cbd5a91a33707951ebf2512d0e759847
Powered by blists - more mailing lists