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 51B14481C0 for ; Wed, 1 May 2024 05:31:34 +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=1714541494; cv=none; b=Uygb+tKNDv3ZLvVdnkuap5YKbePEJHPesibiDvk34t11D3m2KSk2pBLe8x7Hv3aitoE+qTgIhPKxvnk9uObSU67ZOjImGIHUs6Dm30piLZpgB5i0kigzb7heaHrOqszPc+mgLG1pUCvonnipNRJ39OUSeSZZ6MGXhIOIfuqWvNk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714541494; c=relaxed/simple; bh=fkF2VGPkbDDgdG84M42rZ+yccfQL7LvS4tESuvRJqPM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=G2+8VKKbEkdSlOxhji8yMWLs3yfUPXoHZKNSVGUDbhB1D0JXQdplbWaTzKyZXHc0+h/+xMmIxOYUh8LLh+UNsSrUPhBTzC/rg7F7IwFvc610p1noFj0MTmJu8qhnv81oZJY2QGyI/GKMy+24DjHlluoOgsC/3X5g09H1F1KCGeI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=NCIAOxVM; 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="NCIAOxVM" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CD6C4C113CC; Wed, 1 May 2024 05:31:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1714541494; bh=fkF2VGPkbDDgdG84M42rZ+yccfQL7LvS4tESuvRJqPM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=NCIAOxVMqMDmWFyizuao7IouJFpnq/GiTOXgKLKBLe4mY6fcQ+/7/xlL9iznU7z98 fScwypXrFWStHe8ZgbK7toBu3J/jHhL4fWE/WtgFsixkEz8DuzvmaUYDf6Or5ErDiP yT0XXfPgvjbRTXHb0JDm6jkQe6ltCCuOxDRQuESA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-26999: serial/pmac_zilog: Remove flawed mitigation for rx irq flood Date: Wed, 1 May 2024 07:31:00 +0200 Message-ID: <2024050145-CVE-2024-26999-057f@gregkh> X-Mailer: git-send-email 2.44.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=3075; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=fkF2VGPkbDDgdG84M42rZ+yccfQL7LvS4tESuvRJqPM=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmGl1t/Oghe3Hh2y4bpb8M3/vt27vTz8qwJF494LOw/+ iEt7q+uXkcsC4MgE4OsmCLLl208R/dXHFL0MrQ9DTOHlQlkCAMXpwBMZG8xwzyFmR6dM4OW3tqZ wLV0zbQTeW+tLxoxzDM2tQqyqZX5uoPxVtnKANlDkfe3KgIA 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: serial/pmac_zilog: Remove flawed mitigation for rx irq flood The mitigation was intended to stop the irq completely. That may be better than a hard lock-up but it turns out that you get a crash anyway if you're using pmac_zilog as a serial console: ttyPZ0: pmz: rx irq flood ! BUG: spinlock recursion on CPU#0, swapper/0 That's because the pr_err() call in pmz_receive_chars() results in pmz_console_write() attempting to lock a spinlock already locked in pmz_interrupt(). With CONFIG_DEBUG_SPINLOCK=y, this produces a fatal BUG splat. The spinlock in question is the one in struct uart_port. Even when it's not fatal, the serial port rx function ceases to work. Also, the iteration limit doesn't play nicely with QEMU, as can be seen in the bug report linked below. A web search for other reports of the error message "pmz: rx irq flood" didn't produce anything. So I don't think this code is needed any more. Remove it. The Linux kernel CVE team has assigned CVE-2024-26999 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.12 with commit 1da177e4c3f4 and fixed in 5.15.157 with commit 7a3bbe41efa5 Issue introduced in 2.6.12 with commit 1da177e4c3f4 and fixed in 6.1.88 with commit bbaafbb4651f Issue introduced in 2.6.12 with commit 1da177e4c3f4 and fixed in 6.6.29 with commit 52aaf1ff1462 Issue introduced in 2.6.12 with commit 1da177e4c3f4 and fixed in 6.8.8 with commit ca09dfc3cfdf Issue introduced in 2.6.12 with commit 1da177e4c3f4 and fixed in 6.9-rc5 with commit 1be322644536 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-26999 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: drivers/tty/serial/pmac_zilog.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/7a3bbe41efa55323b6ea3c35fa15941d4dbecdef https://git.kernel.org/stable/c/bbaafbb4651fede8d3c3881601ecaa4f834f9d3f https://git.kernel.org/stable/c/52aaf1ff14622a04148dbb9ccce6d9de5d534ea7 https://git.kernel.org/stable/c/ca09dfc3cfdf89e6af3ac24e1c6c0be5c575a729 https://git.kernel.org/stable/c/1be3226445362bfbf461c92a5bcdb1723f2e4907