Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 72A3914D435 for ; Wed, 19 Jun 2024 13:38:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718804314; cv=none; b=bUUdiVj9dzRJ7/wXUSWYCC8k59KPd4jz5ymmfaHmqK/v2iGuHPjRFCbNpwnSvQ791FlAgWogbNoR6Eid5jq8waP4v3uZDp4MxbY1hotEeGJ6HZjNAvpMbFnHdlLlsVXW0ns0G4/4yjPqwKxhinir3tQpEZme8fQ9TCvZffvEBl8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718804314; c=relaxed/simple; bh=XObHGKJLrl6vLV8MQpmoSJnbr84zpgy8/8kFSRGGkRU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=o/ef8rAP5esOZN8h2gVDhVGatHwA19Tq/bAzZG+ldcUIeuh765+6d1zcm5vViI35Sw+C+FviRo/zHfcaglEOJAhttDJzM85bxwjC3BotZed2TxTgFnmw3fBSzbltY+gS/9XcrH5rfMJoNr1lGzWizKc13x6B5wQ9Ob0FpaKJDqw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=UMaeTb18; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="UMaeTb18" Received: by smtp.kernel.org (Postfix) with ESMTPSA id ED769C2BBFC; Wed, 19 Jun 2024 13:38:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1718804314; bh=XObHGKJLrl6vLV8MQpmoSJnbr84zpgy8/8kFSRGGkRU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=UMaeTb18zoaQkx3sX3RSPck6XZGQmczXjJO+kbhDlXyyMP4VewWQYc0ONLVeJoQwt 9PCXMKA3eLmbpNgKJwj4+Fk4bPcAj2AxmSYdVlorPkjZ5dEJ7duLnBU3mUM92UZ55J xFRE007EulnMOUmyqHW0Afuj3oyIrEuP4K2I8B+A= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-38585: tools/nolibc/stdlib: fix memory error in realloc() Date: Wed, 19 Jun 2024 15:37:57 +0200 Message-ID: <2024061949-CVE-2024-38585-4af2@gregkh> X-Mailer: git-send-email 2.45.2 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2316; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=XObHGKJLrl6vLV8MQpmoSJnbr84zpgy8/8kFSRGGkRU=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlF93V55+usYtpR/TWmSt349S/RJIGroS5OG4VlKn++K nNmfsvVEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABO5eodhweSgTWqbrrZ3GNVa ds2vnRyT+1ShjmG+S+MSpy3Fc7lFX8w01Kx6XewWragCAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: tools/nolibc/stdlib: fix memory error in realloc() Pass user_p_len to memcpy() instead of heap->len to prevent realloc() from copying an extra sizeof(heap) bytes from beyond the allocated region. The Linux kernel CVE team has assigned CVE-2024-38585 to this issue. Affected and fixed versions =========================== Issue introduced in 5.19 with commit 0e0ff638400b and fixed in 6.1.93 with commit 5996b2b2dac7 Issue introduced in 5.19 with commit 0e0ff638400b and fixed in 6.6.33 with commit f678c3c33655 Issue introduced in 5.19 with commit 0e0ff638400b and fixed in 6.8.12 with commit 8019d3dd921f Issue introduced in 5.19 with commit 0e0ff638400b and fixed in 6.9.3 with commit 4e6f225aefeb Issue introduced in 5.19 with commit 0e0ff638400b and fixed in 6.10-rc1 with commit 791f4641142e 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-38585 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: tools/include/nolibc/stdlib.h 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/5996b2b2dac739f2a27da13de8eee5b85b2550b3 https://git.kernel.org/stable/c/f678c3c336559cf3255a32153e9a17c1be4e7c15 https://git.kernel.org/stable/c/8019d3dd921f39a237a9fab6d2ce716bfac0f983 https://git.kernel.org/stable/c/4e6f225aefeb712cdb870176b6621f02cf235b8c https://git.kernel.org/stable/c/791f4641142e2aced85de082e5783b4fb0b977c2