lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2024122838-CVE-2024-56706-d292@gregkh>
Date: Sat, 28 Dec 2024 10:45:58 +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-56706: s390/cpum_sf: Fix and protect memory allocation of SDBs with mutex

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

s390/cpum_sf: Fix and protect memory allocation of SDBs with mutex

Reservation of the PMU hardware is done at first event creation
and is protected by a pair of mutex_lock() and mutex_unlock().
After reservation of the PMU hardware the memory
required for the PMUs the event is to be installed on is
allocated by allocate_buffers() and alloc_sampling_buffer().
This done outside of the mutex protection.
Without mutex protection two or more concurrent invocations of
perf_event_init() may run in parallel.
This can lead to allocation of Sample Data Blocks (SDBs)
multiple times for the same PMU.
Prevent this and protect memory allocation of SDBs by
mutex.

The Linux kernel CVE team has assigned CVE-2024-56706 to this issue.


Affected and fixed versions
===========================

	Issue introduced in 6.12 with commit 8a6fe8f21ec4f049a7b1fe120ad50a5065a9c7a8 and fixed in 6.12.2 with commit 4b3bdfa89635db6a53e02955548bd07bebcae233
	Issue introduced in 6.12 with commit 8a6fe8f21ec4f049a7b1fe120ad50a5065a9c7a8 and fixed in 6.13-rc1 with commit f55bd479d8663a4a4e403b3d308d3d1aa33d92df

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-56706
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:
	arch/s390/kernel/perf_cpum_sf.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/4b3bdfa89635db6a53e02955548bd07bebcae233
	https://git.kernel.org/stable/c/f55bd479d8663a4a4e403b3d308d3d1aa33d92df

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ