From mboxrd@z Thu Jan 1 00:00:00 1970 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 B529B182 for ; Wed, 21 Aug 2024 00:08:17 +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=1724198897; cv=none; b=t/o5UI1Fp/LNtDO2vZkLSwLmpDpzjctbpTQVp1M4utYhzQ9CoaDrtOWlYXo8sc+jL1rT2ObaCvQdlvhaI/Jsrkd3Oj35Vmd5Q9/Y5uq3JH/0lju9Q4+WYcyPEabXPIQkKPcXWlaoxLfPsHjXejCsZCoqJhf6xUl0nd/a3CLdd4A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724198897; c=relaxed/simple; bh=XTBeRxUNPllCK8Axv0VGd7TIbHA3V2O7FhpTGQKEKbk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=slkwT4qOg+9k1TC7nH/fikrPcVOmvFb/ekU8W2YhOEFHKH9oKJb0QZJlEYYJ/oCpova4rN7G7PTfRnM72Sj7OjeFn5PAxGcZ4UqOrpQjisGX2NmInKFUO2ZdPRcbxdUUpG820ZZwyZ0v7GLr1BW8FV2Yvs8BQj+5Z/jCPDDRPak= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=WnYr2ICi; 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="WnYr2ICi" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BEAACC4AF0E; Wed, 21 Aug 2024 00:08:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1724198897; bh=XTBeRxUNPllCK8Axv0VGd7TIbHA3V2O7FhpTGQKEKbk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=WnYr2ICiGMO8kv0k64pyvy4yOZtE9c0AUilBa6h5WrBXqUKK1Bu0og/LYU7atlhUk ppa2oglmAjL0/Equ3dyESwsl1QzWnESVJcjAB0t/AR17zgQOkGA50VJgM1sdDTIT/y ChbGU6sOpNaUcGfUV37C5cNDR7yq9Xzc9aZMOJ5o= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-43877: media: pci: ivtv: Add check for DMA map result Date: Wed, 21 Aug 2024 08:07:41 +0800 Message-ID: <2024082137-CVE-2024-43877-e8e4@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=2369; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=XTBeRxUNPllCK8Axv0VGd7TIbHA3V2O7FhpTGQKEKbk=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlH9U9WzPS9a8Sy8MbDzCkzz+w8HF6zLOnI4qOh5U9LA 8+92GY9sSOWhUGQiUFWTJHlyzaeo/srDil6GdqehpnDygQyhIGLUwAmoirGsODyg/8njnBqzXPb 4z2zStc4f561iwXD/ALPf7scNDOKW3R+Ot4xVvj++p/lIQA= 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: media: pci: ivtv: Add check for DMA map result In case DMA fails, 'dma->SG_length' is 0. This value is later used to access 'dma->SGarray[dma->SG_length - 1]', which will cause out of bounds access. Add check to return early on invalid value. Adjust warnings accordingly. Found by Linux Verification Center (linuxtesting.org) with SVACE. The Linux kernel CVE team has assigned CVE-2024-43877 to this issue. Affected and fixed versions =========================== Issue introduced in 5.16 with commit 1932dc2f4cf6 and fixed in 6.1.103 with commit 24062aa74070 Issue introduced in 5.16 with commit 1932dc2f4cf6 and fixed in 6.6.44 with commit 3d8fd92939e2 Issue introduced in 5.16 with commit 1932dc2f4cf6 and fixed in 6.10.3 with commit c766065e8272 Issue introduced in 5.16 with commit 1932dc2f4cf6 and fixed in 6.11-rc1 with commit 629913d6d795 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-43877 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/media/pci/ivtv/ivtv-udma.c drivers/media/pci/ivtv/ivtv-yuv.c drivers/media/pci/ivtv/ivtvfb.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/24062aa7407091dee3e45a8e8037df437e848718 https://git.kernel.org/stable/c/3d8fd92939e21ff0d45100ab208f8124af79402a https://git.kernel.org/stable/c/c766065e8272085ea9c436414b7ddf1f12e7787b https://git.kernel.org/stable/c/629913d6d79508b166c66e07e4857e20233d85a9