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 4AC9F2E1C4E for ; Tue, 7 Oct 2025 15:19:43 +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=1759850384; cv=none; b=i/qj6qK4prHVghouORQmEOF5VAz50He2lEqVfrZUlInRnxkfdXxtMPtDdis5aUMLrHAawITaiw5Uw2oszVY7X9mcNLW4C4nPCygU6H6VQvxFGLNu58gNm72JzBCWQRUli8tnFkCPGdO8f275uOh9awPF1tnEHN01jklsOcuVmg4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759850384; c=relaxed/simple; bh=RnmioG7459LAvmzqBL+A23XpUQWkb7fbgNLrZf6N+fE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=fc+MqSud5GJIMJyATAqaYQqSN/B3l8doMSNrexedDkQ7MINOuq8qTy5kZ+eUde+w561ZjaOsM73OCovW4lo4YgMMd8HW+o1FskU0Ee3NdY+v+WHTKx4tNcvbAcQhsJ1VAIdisLzhsGOKgCdTT/yue2ab/3KrSQEUdyrzE41N2X4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=sO7zv9cd; 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="sO7zv9cd" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6527BC4CEF1; Tue, 7 Oct 2025 15:19:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759850383; bh=RnmioG7459LAvmzqBL+A23XpUQWkb7fbgNLrZf6N+fE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=sO7zv9cdwxhWRWk7y0HZFVcGhaG8TKK3F07d0lewcOIrNfD4dAmLbvKQTdyPeri2W zTnHq7rCxIqRd1ctNPz31xtD1S8uLc8nfcfD+3KECrMC3B9fpVIrgcAiRgEbRp9SD1 jm8FZe2aLTQ0bcXSYrjRzFM5xKPr8KqSOWQnwnvk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50509: media: coda: Add check for kmalloc Date: Tue, 7 Oct 2025 17:18:56 +0200 Message-ID: <2025100755-CVE-2022-50509-e40c@gregkh> X-Mailer: git-send-email 2.51.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=3519; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=kStsip2EJWeVgNgMeVQorTZooSXa0InZ4pBc3iBV4Ho=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlP9eMtO2eEnt0fH/raatpCt6DplUE1S1e3Vq3eutjpU g3Ts5j6jlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhIPwfDPLOKd/GSTYXHq9uk 1ravq0ovu+ipzrCg0VDsypm65zJlBs8Enj99p8iz/F4YAA== 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: media: coda: Add check for kmalloc As the kmalloc may return NULL pointer, it should be better to check the return value in order to avoid NULL poineter dereference, same as the others. The Linux kernel CVE team has assigned CVE-2022-50509 to this issue. Affected and fixed versions =========================== Issue introduced in 3.19 with commit cb1d3a336371e35c3920cc50a701c5403c255644 and fixed in 4.9.337 with commit d308c4a035b636756786af91e5f39f9d92d7d42a Issue introduced in 3.19 with commit cb1d3a336371e35c3920cc50a701c5403c255644 and fixed in 4.14.303 with commit 11e32126b3e56c3156fb610d793732acd2bdac4f Issue introduced in 3.19 with commit cb1d3a336371e35c3920cc50a701c5403c255644 and fixed in 4.19.270 with commit ba9cc9e2035f7a45f5222543265daf7cd51f2530 Issue introduced in 3.19 with commit cb1d3a336371e35c3920cc50a701c5403c255644 and fixed in 5.4.229 with commit 7a2c66429b04e85fee44d6d9f455327bf23cf49c Issue introduced in 3.19 with commit cb1d3a336371e35c3920cc50a701c5403c255644 and fixed in 5.10.163 with commit d9b37ea8869e4e6da90c07a310d819a78cbd23d2 Issue introduced in 3.19 with commit cb1d3a336371e35c3920cc50a701c5403c255644 and fixed in 5.15.86 with commit 441c05485cf1a29eef05c1fd8281716815283315 Issue introduced in 3.19 with commit cb1d3a336371e35c3920cc50a701c5403c255644 and fixed in 6.0.16 with commit aa17a252dbde432095e390e2092205d4debb12e1 Issue introduced in 3.19 with commit cb1d3a336371e35c3920cc50a701c5403c255644 and fixed in 6.1.2 with commit 0209e70ad496c1fcd85c2ec70e6736fd09f95d14 Issue introduced in 3.19 with commit cb1d3a336371e35c3920cc50a701c5403c255644 and fixed in 6.2 with commit 6e5e5defdb8b0186312c2f855ace175aee6daf9b 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-2022-50509 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/platform/chips-media/coda-bit.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/d308c4a035b636756786af91e5f39f9d92d7d42a https://git.kernel.org/stable/c/11e32126b3e56c3156fb610d793732acd2bdac4f https://git.kernel.org/stable/c/ba9cc9e2035f7a45f5222543265daf7cd51f2530 https://git.kernel.org/stable/c/7a2c66429b04e85fee44d6d9f455327bf23cf49c https://git.kernel.org/stable/c/d9b37ea8869e4e6da90c07a310d819a78cbd23d2 https://git.kernel.org/stable/c/441c05485cf1a29eef05c1fd8281716815283315 https://git.kernel.org/stable/c/aa17a252dbde432095e390e2092205d4debb12e1 https://git.kernel.org/stable/c/0209e70ad496c1fcd85c2ec70e6736fd09f95d14 https://git.kernel.org/stable/c/6e5e5defdb8b0186312c2f855ace175aee6daf9b