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 5BFF62D322E for ; Thu, 3 Jul 2025 08:37:03 +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=1751531823; cv=none; b=nwxiuZqKQQjcjim1kq2sFihBOpRcmkojblnPe2vErEO3UPOI+AIo1Po8mHf4+jPzqZ5UdwvdWz+oJrHuqM3KZtaHsf1kjmeKlW09ns+H1/TyxymKzcTcTbeKRWtxxJqyJPnyCaxWqGbg4ayP1IP6qC1hh7UeKLmclFUc9DJW4jY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751531823; c=relaxed/simple; bh=ci4QtYFHuP3wI8c3kwyh2o3WPE2gfelu8pAxzoblPoo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=IT/3RojDC8bA4Z9nL26Fkvbqx7JO2W0MkgCVg9qLEHgTKdrUMwZNJlrGeJwG72+NQda2ZEy/oYKu1/Qoz8ikBbnW0Gydw1hfBiESvyrG4JUP1vpBAlswPPjra+wg0343z77KRI4Rq8uVudcwxkPqdir9IHdnJHyJiCFxWbC+fPI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=VkH/SzRi; 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="VkH/SzRi" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B810BC4CEE3; Thu, 3 Jul 2025 08:37:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1751531823; bh=ci4QtYFHuP3wI8c3kwyh2o3WPE2gfelu8pAxzoblPoo=; h=From:To:Cc:Subject:Date:Reply-to:From; b=VkH/SzRiTT0uZd5jRGHg8NzWprQtkf7DyQVpQHby4eHGF8c2aOgAqAUxqHbpJGnZg BZwZW4xRv2jk5WuR6rEX5xl6sY1fEsMiEsG6nnmTqEeGrleK/YKFy6YtFNAT9XPTf1 p4zCsljD3r1RBM4SINMoIIYSR6gzX46OHfPOIoqI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38105: ALSA: usb-audio: Kill timer properly at removal Date: Thu, 3 Jul 2025 10:35:22 +0200 Message-ID: <2025070322-CVE-2025-38105-dfcf@gregkh> X-Mailer: git-send-email 2.50.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=2158; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=9H/z70s4xm/qe+th5QbT6pKyiH0747mW35lrEXLX9eE=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlpDqfePYqseshh9Gu9+O7Oh6xXlfOXRpgnVNcvUD4cx Cz00PJVRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzkgTjDXOG5y+5ucDvV+V3k lJ/Uo8lKPe+YdzDMz7nydMZWi5M73/1MsZ4vsb9AofAAJwA= 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: usb-audio: Kill timer properly at removal The USB-audio MIDI code initializes the timer, but in a rare case, the driver might be freed without the disconnect call. This leaves the timer in an active state while the assigned object is released via snd_usbmidi_free(), which ends up with a kernel warning when the debug configuration is enabled, as spotted by fuzzer. For avoiding the problem, put timer_shutdown_sync() at snd_usbmidi_free(), so that the timer can be killed properly. While we're at it, replace the existing timer_delete_sync() at the disconnect callback with timer_shutdown_sync(), too. The Linux kernel CVE team has assigned CVE-2025-38105 to this issue. Affected and fixed versions =========================== Fixed in 6.15.3 with commit 62066758d2ae169278e5d6aea5995b1b6f6ddeb5 Fixed in 6.16-rc1 with commit 0718a78f6a9f04b88d0dc9616cc216b31c5f3cf1 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-2025-38105 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/midi.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/62066758d2ae169278e5d6aea5995b1b6f6ddeb5 https://git.kernel.org/stable/c/0718a78f6a9f04b88d0dc9616cc216b31c5f3cf1