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 E4B30158545 for ; Tue, 20 May 2025 15:34:59 +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=1747755300; cv=none; b=nEegkFScAvaUBSp9QPnU7MPIMjpe2bpakYwF4oqSsZONR6SxirFtrX50PP6dZf3ealTOHnS+3j3RgO/1SfH6C/Hd5mukWsNam+biV16rIwOkI+z6tNMghcMC+i8qkofZMfmNHPSPNHlZ8aMjWQp6SxftBlOwBE37BgUqesbY7QU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747755300; c=relaxed/simple; bh=iNs5ZXvHDtzZicapk2zxDU/MNQfRvINyZpj/uc7dF94=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=nrlQB4+5/dY2BfcYrJPgYaufYEYotz6B87GccEL0urI/Qk2cFmdD175HAJmKKgEZvurF65fHQN9CMuoFGMdS78exvffYQxhNAtW0pX13osF9WMqLemIAduIjCQZMhsXGsGfcAG2n5KwpRVSpF6fIuFO4JYDGA0zLJM+R6+L8CBE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ReZO/FzQ; 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="ReZO/FzQ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id F1AFEC4CEE9; Tue, 20 May 2025 15:34:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1747755299; bh=iNs5ZXvHDtzZicapk2zxDU/MNQfRvINyZpj/uc7dF94=; h=From:To:Cc:Subject:Date:Reply-to:From; b=ReZO/FzQizFxgqZMi/uUa+QNZAlfl57013BB3rCJ7SgUVB3H+hpFL37HI9izlM8B8 sMxBRtUnz42X1muNq5mbZeqNRPlIl9pLEVwoHvP/njWmYF1hYTUQJLhUUi17I+9NiH KRmwqtGvyrIRBWQZ/eg+yBvdybZreNiOBG1lD5DE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-37939: libbpf: Fix accessing BTF.ext core_relo header Date: Tue, 20 May 2025 17:34:47 +0200 Message-ID: <2025052047-CVE-2025-37939-8398@gregkh> X-Mailer: git-send-email 2.49.0 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=2159; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=BmeW+UMDztSHuqlb67P6mW2g+v2M5k7Ax7ejai2DOwY=; b=owGbwMvMwCRo6H6F97bub03G02pJDBk6C8WnuF4zeV1U+WVZa9t0rRsSn59csBVNYDtc1LQvf M/BpTKWHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRJX8Y5qfVlisq/pkV0n9j 433hD5N2Cf9QvM8wP9mzb8GVUpmJdz+8X6FoeS/1Z+BzKwA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: libbpf: Fix accessing BTF.ext core_relo header Update btf_ext_parse_info() to ensure the core_relo header is present before reading its fields. This avoids a potential buffer read overflow reported by the OSS Fuzz project. The Linux kernel CVE team has assigned CVE-2025-37939 to this issue. Affected and fixed versions =========================== Issue introduced in 6.13 with commit cf579164e9ea9cd41c7c1da931683a319d224890 and fixed in 6.13.11 with commit d529411ec44535308c5d59cbeff74be6fe14b479 Issue introduced in 6.13 with commit cf579164e9ea9cd41c7c1da931683a319d224890 and fixed in 6.14.2 with commit 3a67f60f0a8be10cea7a884a1a00e9feb6645657 Issue introduced in 6.13 with commit cf579164e9ea9cd41c7c1da931683a319d224890 and fixed in 6.15-rc1 with commit 0a7c2a84359612e54328aa52030eb202093da6e2 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-2025-37939 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/lib/bpf/btf.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/d529411ec44535308c5d59cbeff74be6fe14b479 https://git.kernel.org/stable/c/3a67f60f0a8be10cea7a884a1a00e9feb6645657 https://git.kernel.org/stable/c/0a7c2a84359612e54328aa52030eb202093da6e2