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 C408214EC6D for ; Wed, 19 Jun 2024 13:56:43 +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=1718805403; cv=none; b=NbVex2uVB0Eb6YHeumhviC1prCS0RHEtL4yuafUL3hqo+aKzTcYcYtbRt/Nt0bj12wyy02ELc+WSG5kcYAdIQLo0ovu1cpWCQYSivS4LN9pJwCjgXy9tna/+u9f/QM5NZ58oYwKalgAF8kOlNu9j+va9uEQNV6TCPeY9LvtlYy4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718805403; c=relaxed/simple; bh=Du6l8ubnhMxPbfiCYnYMraq3NfQ/mP1meUSWuTtIEKk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=NZ/VLZWz2U2BWKcxwH833CFurJGsH+uKp8z8LRTGNKdIWvLGMr4+SLipKrp6YS7+CmRwOqIQCtXG0MlSB5elfRE47MZUoy/IFmXBIns+oPwl37B7lWgrf29Xhwx7apN4rRx3vA5WIu/Rq3fd/NpCwHgJR3bjU1LTaFODs0aqS9A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=n7LR2rCL; 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="n7LR2rCL" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 32BFCC2BBFC; Wed, 19 Jun 2024 13:56:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1718805403; bh=Du6l8ubnhMxPbfiCYnYMraq3NfQ/mP1meUSWuTtIEKk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=n7LR2rCLDL5E21aC36aaeNlSjyI5AHGpeaQp3drjlLnkY3w6YM8bxDPrzY9GkPakS Buf7jOZ0BXvCZgpZ1AP3Ly/24Vkr4jPifnpprZS6guKS0idJExOUjsB8pq2Y7k/Y4U zCdpsf+ofXUzL0LPoFFeUwPHnXTGiiAYpTm9Ysw8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-38618: ALSA: timer: Set lower bound of start tick time Date: Wed, 19 Jun 2024 15:56:31 +0200 Message-ID: <2024061923-CVE-2024-38618-35a9@gregkh> X-Mailer: git-send-email 2.45.2 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=2791; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Du6l8ubnhMxPbfiCYnYMraq3NfQ/mP1meUSWuTtIEKk=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlFj9uVZf2E155cu9mu3jEn36t8T8rGKwVTinbmx1Zq3 d7+oVKkI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACaiMZFhfpbEHokch5nOv6et nF+Q0r/p63ybuwzzNM9aXfHQ29wps9Qrc7L4c7dF0c33AQ== 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: timer: Set lower bound of start tick time Currently ALSA timer doesn't have the lower limit of the start tick time, and it allows a very small size, e.g. 1 tick with 1ns resolution for hrtimer. Such a situation may lead to an unexpected RCU stall, where the callback repeatedly queuing the expire update, as reported by fuzzer. This patch introduces a sanity check of the timer start tick time, so that the system returns an error when a too small start size is set. As of this patch, the lower limit is hard-coded to 100us, which is small enough but can still work somehow. The Linux kernel CVE team has assigned CVE-2024-38618 to this issue. Affected and fixed versions =========================== Fixed in 4.19.316 with commit 68396c825c43 Fixed in 5.4.278 with commit 74bfb8d90f26 Fixed in 5.10.219 with commit bdd0aa055b8e Fixed in 5.15.161 with commit 83f0ba8592b9 Fixed in 6.1.93 with commit ceab795a67dd Fixed in 6.6.33 with commit 2c95241ac5fc Fixed in 6.9.3 with commit abb1ad69d98c Fixed in 6.10-rc1 with commit 4a63bd179fa8 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-38618 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/timer.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/68396c825c43664b20a3a1ba546844deb2b4e48f https://git.kernel.org/stable/c/74bfb8d90f2601718ae203faf45a196844c01fa1 https://git.kernel.org/stable/c/bdd0aa055b8ec7e24bbc19513f3231958741d0ab https://git.kernel.org/stable/c/83f0ba8592b9e258fd80ac6486510ab1dcd7ad6e https://git.kernel.org/stable/c/ceab795a67dd28dd942d0d8bba648c6c0f7a044b https://git.kernel.org/stable/c/2c95241ac5fc90c929d6c0c023e84bf0d30e84c3 https://git.kernel.org/stable/c/abb1ad69d98cf1ff25bb14fff0e7c3f66239e1cd https://git.kernel.org/stable/c/4a63bd179fa8d3fcc44a0d9d71d941ddd62f0c4e