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 A81071E1A2F for ; Wed, 4 Sep 2024 18:37:08 +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=1725475028; cv=none; b=B1XcZq1L6RkC0uk2GyEH2BKC1j180GFnQvWrHZx5qyRl4okSIeM6HvuZ0JPIC//wWMuKeNxMzioZ6q1qoZSwl35pfwXdMhZDeGnPt7OJHon79+it3BmJWU9DNwBkca/jdTfpbf6HWq8/yfZ429qk5dO8KAxpiz7LltIVBI9+t/w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725475028; c=relaxed/simple; bh=e4ZnQKLmD+/I4fQL11p0OLpD3i1uRtl5l7Qg66UtskY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=V5aOTIi0iEkqz4jvteE3Wkh3c4kHt4THa4BqOGUEucpGB9BtBpie3CsCx5/fvccHjnjA/XBjMADLwwaM0buMIrn9QOqhZxuoRobnBRIvOXdyBy2jmGcQVImHFfVz27GeXKdTnRxGVA04TbhKQD+6QD81rQG6ULCKMjJnqgi/D1M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=XBfG04d4; 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="XBfG04d4" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 143A3C4CEC6; Wed, 4 Sep 2024 18:37:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1725475028; bh=e4ZnQKLmD+/I4fQL11p0OLpD3i1uRtl5l7Qg66UtskY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=XBfG04d4I/w/Ovp75SFPJ4+mkCE0KzVfm1J+pLpshRmGhoZkmWgVm6F49Mm3u2HSl K7X5bp6jrCOX3/PbglvWDcW2qlCL1+x63JyTQLCNxFQfDdaWsDXBVngASMTChm+hPw cJA+sXDVzd7Jl1dqWIPer2sKwZrvCHiN3vYRoDz0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-44954: ALSA: line6: Fix racy access to midibuf Date: Wed, 4 Sep 2024 20:36:14 +0200 Message-ID: <2024090411-CVE-2024-44954-6838@gregkh> X-Mailer: git-send-email 2.46.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=2578; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=e4ZnQKLmD+/I4fQL11p0OLpD3i1uRtl5l7Qg66UtskY=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk3VsxhibQzbCt6PSfnKcuByxm7TVXiqvU0W2tmNgq6X nr1Qn9tRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzk5DqGBTNOcd39+U289sOL TRmGGhWGlUt9tjPM09z9scHKiP9FcHLfjuvnH/7q2PWkBwA= 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: line6: Fix racy access to midibuf There can be concurrent accesses to line6 midibuf from both the URB completion callback and the rawmidi API access. This could be a cause of KMSAN warning triggered by syzkaller below (so put as reported-by here). This patch protects the midibuf call of the former code path with a spinlock for avoiding the possible races. The Linux kernel CVE team has assigned CVE-2024-44954 to this issue. Affected and fixed versions =========================== Fixed in 4.19.320 with commit 643293b68fbb Fixed in 5.4.282 with commit 40f3d5cb0e0c Fixed in 5.10.224 with commit e7e7d2b180d8 Fixed in 5.15.165 with commit a54da4b787dc Fixed in 6.1.105 with commit c80f454a8054 Fixed in 6.6.46 with commit 535df7f896a5 Fixed in 6.10.5 with commit 51d87f11dd19 Fixed in 6.11-rc3 with commit 15b7a03205b3 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-2024-44954 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/line6/driver.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/643293b68fbb6c03f5e907736498da17d43f0d81 https://git.kernel.org/stable/c/40f3d5cb0e0cbf7fa697913a27d5d361373bdcf5 https://git.kernel.org/stable/c/e7e7d2b180d8f297cea6db43ea72402fd33e1a29 https://git.kernel.org/stable/c/a54da4b787dcac60b598da69c9c0072812b8282d https://git.kernel.org/stable/c/c80f454a805443c274394b1db0d1ebf477abd94e https://git.kernel.org/stable/c/535df7f896a568a8a1564114eaea49d002cb1747 https://git.kernel.org/stable/c/51d87f11dd199bbc6a85982b088ff27bde53b48a https://git.kernel.org/stable/c/15b7a03205b31bc5623378c190d22b7ff60026f1