Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 848243F5BED for ; Wed, 27 May 2026 13:00:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779886841; cv=none; b=KfgdHAgLZppFP0Fj9FrXNdF1nPjicj0hkdcMTnuQ0zi9YhuMaVw0hqR49cwUgC9zrCV1NEoFRiXfLhlIxkLDf+BDvPPTjCTUo4QH+pxBfVXBHe75NZSvoE4Y+VYKp1bNbHJnfRU8Nxn/snnrOvSIbqT+grD4ocVby8ieFBWEoMc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779886841; c=relaxed/simple; bh=FGHghDSf2wLJy6Wdg+c5jO+RDM95xZPSY9GyMgO8z/U=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=kwhNB2NWVHpUsCx448Vmzlzbe7sIGoCJvbwLvwD3CTlntxDBBnPnTJu2vXKsMGuBmYV9JwkdVmJf+bi7AY79L5sJfId29+Std9fHvvFFvl4rTK4Di3bJlJ+sGXQwaHXLSpniB5yOYXd6CfAy8wWREfKFqBZHGe92B2eIbFttFoY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=L1NYGlXF; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="L1NYGlXF" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D4D3B1F000E9; Wed, 27 May 2026 13:00:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779886840; bh=wGzbgWLVSuh7DfhFdldPJEjQSSF2eDWWqHehgVIQ3Uk=; h=From:To:Cc:Subject:Date:Reply-To; b=L1NYGlXFh5Q+bspgQ5i3N31g26CPIzJwYnwZoaWut6EddPfKJJK6AN7XJTtlNgVKt f0qqAlxjyCjDFJIVvZaclCTaHJ9tpk4Ysc64UsysTFATU9JtjnLnjdFJsVCWraExT8 E7k95kljT+1ugRm/npxbXYaoInlMG9Yn1RYFFZac= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-46004: ALSA: caiaq: Handle probe errors properly Date: Wed, 27 May 2026 14:58:55 +0200 Message-ID: <2026052742-CVE-2026-46004-7e24@gregkh> X-Mailer: git-send-email 2.54.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=3489; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=eNqhuQgByDdGGOzQttI6UryBdtpSMWNMY2K54zRRy1E=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlir5oN/il2zr60wvjJBs/M37KmW6dfOtupclj37MULZ 8V/Lzqa3xHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQATsQ1gmO9xL1pK3G5h8ILW sxxf/NkFe1MnHGSYZ+m/RUbeVLKLNdmgaJNotU2OQcMhAA== 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: ALSA: caiaq: Handle probe errors properly The probe procedure of setup_card() in caiaq driver doesn't treat the error cases gracefully, e.g. the error from snd_card_register() calls snd_card_free() but continues. This would lead to a UAF for the further calls like snd_usb_caiaq_control_init(), as Berk suggested in another patch in the link below. However, the problem is not only that; in general, this function drops the all error handlings (as it's a void function) although its caller can propagate an error to snd_probe(), which eventually calls snd_card_free() as a proper error path. That said, we should treat each error case in setup_card(), and just return the error code promptly, which is then handled later as a fatal error in snd_probe(). This patch achieves it by changing the setup_card() to return an error code. Also, the superfluous snd_card_free() call is removed, too. Note that card->private_free can be set still safely at returning an error. All called functions in card_free() have checks of the unassigned resources or NULL checks. The Linux kernel CVE team has assigned CVE-2026-46004 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.25 with commit 8e3cd08ed8e590952aa9a656758cb24d4ba898f8 and fixed in 6.6.140 with commit f537e3ad69609f6924a4db6b4a7f6561f5288bdd Issue introduced in 2.6.25 with commit 8e3cd08ed8e590952aa9a656758cb24d4ba898f8 and fixed in 6.12.86 with commit 6251e3e256337a30160ef59ab1580dde4d1acd28 Issue introduced in 2.6.25 with commit 8e3cd08ed8e590952aa9a656758cb24d4ba898f8 and fixed in 6.18.27 with commit e59ecd4ee3a450db6cb4e4ecaa3efdd593f80056 Issue introduced in 2.6.25 with commit 8e3cd08ed8e590952aa9a656758cb24d4ba898f8 and fixed in 7.0.4 with commit 096dd8519cf2f768e9e14f224b627f7aaee1a9c5 Issue introduced in 2.6.25 with commit 8e3cd08ed8e590952aa9a656758cb24d4ba898f8 and fixed in 7.1-rc1 with commit 28abd224db4a49560b452115bca3672a20e45b2f 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-2026-46004 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/usb/caiaq/device.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/f537e3ad69609f6924a4db6b4a7f6561f5288bdd https://git.kernel.org/stable/c/6251e3e256337a30160ef59ab1580dde4d1acd28 https://git.kernel.org/stable/c/e59ecd4ee3a450db6cb4e4ecaa3efdd593f80056 https://git.kernel.org/stable/c/096dd8519cf2f768e9e14f224b627f7aaee1a9c5 https://git.kernel.org/stable/c/28abd224db4a49560b452115bca3672a20e45b2f