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 9C8C81DF254 for ; Tue, 30 Dec 2025 12:03:41 +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=1767096221; cv=none; b=b7seu+tHzQSZfr0ylkdDw/0g6GUoPaKXVVL3ULkcpAGWHKISwTXMy8Kmo2B1vV3f4asfxVbjKrteRmcvoKeIQHN1H7rtlBoknGflp+F1T2XLeLOsxCcvfT4EDVY5aiNebloI/6HFlrW0dUMynymaLPi3vxekMMvVolC8vbpba5E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767096221; c=relaxed/simple; bh=m8dRChyEJXm/pETL8kiOC/5QD+nm8JixJUUWYIgWlvc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=g5b5otRY6TENzrxVfIgUhIDTN1sSdYFo2aFqOYCWUoX2ZHI8fr6JhsPMdq4C5cPWvSLcB6VcNuDahiXMSKRiR27SnUmRk6CNg9fM6qKOgm0V11hPvb1kISXz78S5sP3cvLC53em73tE8K4Cbf5K7y4sKj3a0jK9Vw23U/1ymvr4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=mBllo/+v; 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="mBllo/+v" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 03989C4CEFB; Tue, 30 Dec 2025 12:03:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1767096221; bh=m8dRChyEJXm/pETL8kiOC/5QD+nm8JixJUUWYIgWlvc=; h=From:To:Cc:Subject:Date:Reply-To:From; b=mBllo/+vW5OaPxIMKWWhZ85fTe46Wk8HYAJDpaCUZH1QhklwKQzCGO3vZxr+CIDQm woy6ZOv0BpgmrIADkJ54WkDUsI4A6KamDw1uzuRXAVxeYd8wg2LNpAnI/j+GWjT21Q 3JfJWqcf4u58AnfW6GTQZ0KwFKPqqWSGPNYvq4LQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50786: media: s5p-mfc: Clear workbit to handle error condition Date: Tue, 30 Dec 2025 13:03:29 +0100 Message-ID: <2025123028-CVE-2022-50786-0c33@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3187; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=yi0qGwmQZOboeaxDaxNbOqGnjo8vLblMdvQ+vGcpIFM=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnB+yfu7Y5NFZbYo/iBp/HhYpOOcwU+Qq/UVY7OXlIVu 2txts6FjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiIiSbD/PpbIUJR9nNS1Ldc cJl/su2tl8mVBQwLlrqZXSiZuf5blhEH5/XYJ6w8HYsMAQ== 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: s5p-mfc: Clear workbit to handle error condition During error on CLOSE_INSTANCE command, ctx_work_bits was not getting cleared. During consequent mfc execution NULL pointer dereferencing of this context led to kernel panic. This patch fixes this issue by making sure to clear ctx_work_bits always. The Linux kernel CVE team has assigned CVE-2022-50786 to this issue. Affected and fixed versions =========================== Issue introduced in 3.16 with commit 818cd91ab8c6e42c2658c8e61f8462637c6f586b and fixed in 4.19.270 with commit 12242bd13ce68acd571b2cce6ab302e154e8a4ee Issue introduced in 3.16 with commit 818cd91ab8c6e42c2658c8e61f8462637c6f586b and fixed in 5.4.229 with commit 640075400c7c577b0f5369b935e22a588773fafa Issue introduced in 3.16 with commit 818cd91ab8c6e42c2658c8e61f8462637c6f586b and fixed in 5.10.163 with commit 8ff64edf9d16e8c277dcc8189794763624e6b4b8 Issue introduced in 3.16 with commit 818cd91ab8c6e42c2658c8e61f8462637c6f586b and fixed in 5.15.87 with commit ff27800c0a6d81571671b33f696109804d015409 Issue introduced in 3.16 with commit 818cd91ab8c6e42c2658c8e61f8462637c6f586b and fixed in 6.0.18 with commit 09c1fbbe532758e4046c20829f4c0c50b99332dc Issue introduced in 3.16 with commit 818cd91ab8c6e42c2658c8e61f8462637c6f586b and fixed in 6.1.4 with commit bd1b72f0c39a0d791a087b4e643701a48328ba8e Issue introduced in 3.16 with commit 818cd91ab8c6e42c2658c8e61f8462637c6f586b and fixed in 6.2 with commit d3f3c2fe54e30b0636496d842ffbb5ad3a547f9b 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-50786 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/samsung/s5p-mfc/s5p_mfc_ctrl.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/12242bd13ce68acd571b2cce6ab302e154e8a4ee https://git.kernel.org/stable/c/640075400c7c577b0f5369b935e22a588773fafa https://git.kernel.org/stable/c/8ff64edf9d16e8c277dcc8189794763624e6b4b8 https://git.kernel.org/stable/c/ff27800c0a6d81571671b33f696109804d015409 https://git.kernel.org/stable/c/09c1fbbe532758e4046c20829f4c0c50b99332dc https://git.kernel.org/stable/c/bd1b72f0c39a0d791a087b4e643701a48328ba8e https://git.kernel.org/stable/c/d3f3c2fe54e30b0636496d842ffbb5ad3a547f9b