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 46FF7219A74 for ; Wed, 26 Feb 2025 02:24: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=1740536664; cv=none; b=XsymfwtIri7G0mSpQ3OOoYgUE0rYNumUl9HpbfiUx07TREkgji/5p7HF9KaUeM/nh3PGWI4FkIomfXyAQiUmZHwAJcvSPOrDLcpYOizofkoUUF//zAI4F1KRYzsMLYg/y5lndwrZDKhfg+hmNIzlZ+6JJ3Faz1+rgiaxTRRYC5o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536664; c=relaxed/simple; bh=ISC0SsM8uRiWS9zPzv7PL2BSNnRP0MwGZmzG+ObyKw0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=g+LO2LrM1O/alTi4LndbDd9GSeQ1BWGGeqr+P8hNbOl7HOm2bx+b34yYzhWYuo4yuqgHzEreXEK+sMH6FY0OutPz8YJAqFog0XkPkZZBqb1WSjGn0PtxkUv1x6UidXdwyEoBOOWh9QmVHTw1fw27CPGeFROLxSEIb+PrNULz+98= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=bFqP3qFX; 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="bFqP3qFX" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1B579C4CEDD; Wed, 26 Feb 2025 02:24:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740536664; bh=ISC0SsM8uRiWS9zPzv7PL2BSNnRP0MwGZmzG+ObyKw0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=bFqP3qFX41+/7y4MXS3m35E67YkZy49ZKYaW284qNsRY7Gegov8AA/ChkCM1K2dVh 7x29TYDKigVqH2YtpZddxqEFFS9s0nOcN4maGNDofn9ZfG4yck9loQuNj+Rg0GOHNw SOyf03zgPRNYGF+BglWs8B72FerOGvziQGHlxBWg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49616: ASoC: rt7*-sdw: harden jack_detect_handler Date: Wed, 26 Feb 2025 03:22:59 +0100 Message-ID: <2025022614-CVE-2022-49616-5eb4@gregkh> X-Mailer: git-send-email 2.48.1 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=2073; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ISC0SsM8uRiWS9zPzv7PL2BSNnRP0MwGZmzG+ObyKw0=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7qq5tfvVmYwDf3mvF645xc5msC/rcVbZFwPnIozpzm SfTPLcwdMSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEitwY5tezV4tV7JcJa//Y 2dAipdE6VY7bkmHBicvtqqrhrCXO01b6pp4MDVd80WcBAA== 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: ASoC: rt7*-sdw: harden jack_detect_handler Realtek headset codec drivers typically check if the card is instantiated before proceeding with the jack detection. The rt700, rt711 and rt711-sdca are however missing a check on the card pointer, which can lead to NULL dereferences encountered in driver bind/unbind tests. The Linux kernel CVE team has assigned CVE-2022-49616 to this issue. Affected and fixed versions =========================== Fixed in 5.15.56 with commit 07a606e1389a63b61cb8cd591026f30529117573 Fixed in 5.18.13 with commit 1d75b73ec6d6b705cca528b36d8315e43e8d7fa5 Fixed in 5.19 with commit 0484271ab0ce50649329fa9dc23c50853c5b26a4 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-49616 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: sound/soc/codecs/rt700.c sound/soc/codecs/rt711-sdca.c sound/soc/codecs/rt711.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/07a606e1389a63b61cb8cd591026f30529117573 https://git.kernel.org/stable/c/1d75b73ec6d6b705cca528b36d8315e43e8d7fa5 https://git.kernel.org/stable/c/0484271ab0ce50649329fa9dc23c50853c5b26a4