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 3E3F32185BC for ; Wed, 26 Feb 2025 02:15:04 +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=1740536104; cv=none; b=sdJvktBvRJZLlrPvBMNxyAZ89kNCp94MPFUPOn88IZ6j5P7qV9Ec4rCe1JuCLTfqTz0wULhupGJfQcv7zai2Zj+h7orTRgGZfW9wDPEwXsYkvRrpsao3WUyfJOogio6Dx9VuvdO6okUPavZjsvwq0l1u5uQa1aR8ddwCzN7Xuvg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536104; c=relaxed/simple; bh=j8uESX5+fNe86O6vGXPAhCC1xD9OyxlAG83zpZgRlCc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Cs3EeehBcCsnZsuyttMhCa87Q+ln60iXIUVXUMLIh5XhKqYcqHlBFSUk+H1ldPps7XN7wIihfNfvyRhrI9wzgAmAZ4XXYKlp+0/7dhFIqBu7dcFsn3gFf+SNvWUouEkO87e00xlS2ZJ1ZphUafhKlXfKf+YeXylU35oa8tC/s3w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=EG2JwHLm; 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="EG2JwHLm" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 122F0C4CEDD; Wed, 26 Feb 2025 02:15:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740536104; bh=j8uESX5+fNe86O6vGXPAhCC1xD9OyxlAG83zpZgRlCc=; h=From:To:Cc:Subject:Date:Reply-to:From; b=EG2JwHLm5unv4LhvfJoXQHcp5cPwhUKGl5tdjGtdXAs5qaFIM9571jSJG1aeoQ6yo C/k8QY22HrRontRkceOE0sNUpYG9quzYjwyqpa4XhYREQtdhuaSo9D6qvS1mw9Eaa4 W9TiIWdIpJ9GeCaMzJXswr0dw57ke872/ud5hWMM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49498: ALSA: pcm: Check for null pointer of pointer substream before dereferencing it Date: Wed, 26 Feb 2025 03:12:52 +0100 Message-ID: <2025022607-CVE-2022-49498-dd18@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=2810; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=j8uESX5+fNe86O6vGXPAhCC1xD9OyxlAG83zpZgRlCc=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7yv+LCZXt7OvedC3K9k9uwdMLizYriW44vv6ispn1u dN/2t2cOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAim70YFpz8/OTuqc4u+9BT ixh5s08eSKg9zc+wYEP1kkjptqlXdUV/K0lXWrkeF3m3HAA= 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: ALSA: pcm: Check for null pointer of pointer substream before dereferencing it Pointer substream is being dereferenced on the assignment of pointer card before substream is being null checked with the macro PCM_RUNTIME_CHECK. Although PCM_RUNTIME_CHECK calls BUG_ON, it still is useful to perform the the pointer check before card is assigned. The Linux kernel CVE team has assigned CVE-2022-49498 to this issue. Affected and fixed versions =========================== Issue introduced in 5.6 with commit d4cfb30fce03093ad944e0b44bd8f40bdad5330e and fixed in 5.10.121 with commit f2c68c52898f623fe84518da4606538d193b0cca Issue introduced in 5.6 with commit d4cfb30fce03093ad944e0b44bd8f40bdad5330e and fixed in 5.15.46 with commit 7784d22f81a29df2ec57ca90d54f93a35cbcd1a2 Issue introduced in 5.6 with commit d4cfb30fce03093ad944e0b44bd8f40bdad5330e and fixed in 5.17.14 with commit 1f2e28857be1e5c7db39bbc221332215fc5467e3 Issue introduced in 5.6 with commit d4cfb30fce03093ad944e0b44bd8f40bdad5330e and fixed in 5.18.3 with commit b41ef7ad9238c22aa2e142f5ce4ce1a1a0d48123 Issue introduced in 5.6 with commit d4cfb30fce03093ad944e0b44bd8f40bdad5330e and fixed in 5.19 with commit 011b559be832194f992f73d6c0d5485f5925a10b 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-49498 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/core/pcm_memory.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/b2421a196cb0911ea95aec1050a0b830464c8fa6 https://git.kernel.org/stable/c/f2c68c52898f623fe84518da4606538d193b0cca https://git.kernel.org/stable/c/7784d22f81a29df2ec57ca90d54f93a35cbcd1a2 https://git.kernel.org/stable/c/1f2e28857be1e5c7db39bbc221332215fc5467e3 https://git.kernel.org/stable/c/b41ef7ad9238c22aa2e142f5ce4ce1a1a0d48123 https://git.kernel.org/stable/c/011b559be832194f992f73d6c0d5485f5925a10b