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 04A6D1474A2 for ; Sat, 17 Aug 2024 09:23:24 +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=1723886604; cv=none; b=b8olZO680WYS5JH7KiH8q0zp7mikajmHdoCabSCh8ONjcQmkA5c/FwTx8HHoBF/rLNOEZpKvCpPITAHxqpp6XkprB2ZjL2ZWVQaB4VVo5E5YtFqngxMVUZqzNnYcPOFZWAPryeBwE3N6V43g1BKi57F58swANSKMODbpFSayTrA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723886604; c=relaxed/simple; bh=w3dT4J6MJG2kdcAfUjmewNJWTbhGf6S81HXs4s5SC+k=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Dey2CLDVkoc3pO7J8j0UoIWc7fbxhGzVocbYFQ6Fe9IDhXbUK6GUY6VgvlUIZQ2C/uYBZey/hz/BpUF+b5BMdAPa9KfF+4ltiw6BiKzdBtnXI/DAqvn2zoneAAv/FHfWQcqEbKyqscuRNiTu5w5J0xTNvALVAsE9dST3E4OUZds= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=UMDT72hc; 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="UMDT72hc" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7FAB5C116B1; Sat, 17 Aug 2024 09:23:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1723886603; bh=w3dT4J6MJG2kdcAfUjmewNJWTbhGf6S81HXs4s5SC+k=; h=From:To:Cc:Subject:Date:Reply-to:From; b=UMDT72hczX4IkYtxdZZkX9ffl35yUZ0mf9nDFqN6eaSSRVk0iPnmW0L79XsywNtsG q/UExf8vQXD5rhL4uFO2Ys7ScDB5gucgNjvYhBji87ARmfjT3ASuw6xz6YaxHlpJjg 2ORP68JrCKbDUm83QQs2bXSVu+3GJG6i4rYzyHBE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-43838: bpf: fix overflow check in adjust_jmp_off() Date: Sat, 17 Aug 2024 11:22:42 +0200 Message-ID: <2024081729-CVE-2024-43838-968a@gregkh> X-Mailer: git-send-email 2.46.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=1957; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=w3dT4J6MJG2kdcAfUjmewNJWTbhGf6S81HXs4s5SC+k=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkHsq8mqMf4Sm8U3fbNToFToOj9mVuHf7dPszC6un53X PKamnKBjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhI0leG+anHNkSInLx7Z5lH WF9abtrO6b+MkhgWzK4+9etqzcf0lzKW1sxCOvErKqrWAQA= 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: bpf: fix overflow check in adjust_jmp_off() adjust_jmp_off() incorrectly used the insn->imm field for all overflow check, which is incorrect as that should only be done or the BPF_JMP32 | BPF_JA case, not the general jump instruction case. Fix it by using insn->off for overflow check in the general case. The Linux kernel CVE team has assigned CVE-2024-43838 to this issue. Affected and fixed versions =========================== Issue introduced in 6.10 with commit 5337ac4c9b80 and fixed in 6.10.3 with commit 345652866a88 Issue introduced in 6.10 with commit 5337ac4c9b80 and fixed in 6.11-rc1 with commit 4a04b4f0de59 Issue introduced in 6.9.8 with commit e47a1a791d32 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-43838 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: kernel/bpf/verifier.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/345652866a8869825a2a582ee5a28d75141f184a https://git.kernel.org/stable/c/4a04b4f0de59dd5c621e78f15803ee0b0544eeb8