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 570B23BD643 for ; Fri, 26 Jun 2026 19:43:00 +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=1782502981; cv=none; b=nYTkhNSj5Bxnpj909JJvPd9PMBmL60GhoOKUCKXRqYAYFdoL5HiXGyybasIg1hHGIobcrQWwQoEZefnHBPmdSTeVow7omzxFyfX6Fm2jO/N0FFWcwtV9+qQryhDukWyEsrf8VgznZggPB5R2jWxW7UnG+HPSYpCHQhlfGs7IONY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782502981; c=relaxed/simple; bh=BTVp+UZoxeCu+qRZOAn7DdFpKujM93slYY+djEJlONo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ftY9rN/8pCBgElxqkS8Bqz86lHxfoOb+ohkXnJHjfLDx2OxFtSjX0Sj4bWGGbehcugsDPK6mzDvY4ydESvuvyOy8VfHh6L2vJ9va6TN8pSpg7vkK2J5RD5Uw2LsXLH6zBo+whqboLEm59mQyDxzqfC7+EdscK/Y/sf0VBksefX0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=nOWic7Oi; 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="nOWic7Oi" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 47E0E1F000E9; Fri, 26 Jun 2026 19:42:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1782502980; bh=e0vHHEyvfEJYwEBX6LzAV6wwvad1xp1UA9kJJQnA+bk=; h=From:To:Cc:Subject:Date:Reply-To; b=nOWic7OiF/UteQO1YGjGibn8YmgP1Lx9sR/2T9IJTJP9Tk7yHo4RbUdEX6N2MpLur ncteQeldvPkYBCEb4xiQye+ziFn/K4n2kkkHjgUf9FYAVZOWilgr1aKErPcXC8R6ob rnk21kMD4A5jlST+VHNSm/N+ErM+lrZwJbrei0nA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-53306: tty: hvc_iucv: fix off-by-one in number of supported devices Date: Fri, 26 Jun 2026 20:40:39 +0100 Message-ID: <2026062619-CVE-2026-53306-02d7@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=3733; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=IF1xe92X6LYTvHUXjCMUnv3rlkqhEZXSIqcW+AkUtyw=; b=owGbwMvMwCRo6H6F97bub03G02pJDFl2V5d8LRAzmHzsx45YA9HcNFXbOu6ioCp3hYPHTbOrP f2zvzl2xLIwCDIxyIopsnzZxnN0f8UhRS9D29Mwc1iZQIYwcHEKwETemTHM4bOW/xlQtW+C4NFJ j5e7/2FyPHBsC8Nc0XOJsQc2i886//rNP1bmJrkANZ3fAA== 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: tty: hvc_iucv: fix off-by-one in number of supported devices MAX_HVC_IUCV_LINES == HVC_ALLOC_TTY_ADAPTERS == 8. This is the number of entries in: static struct hvc_iucv_private *hvc_iucv_table[MAX_HVC_IUCV_LINES]; Sometimes hvc_iucv_table[] is limited by: (a) if (num > hvc_iucv_devices) // for error detection or (b) for (i = 0; i < hvc_iucv_devices; i++) // in 2 places (so these 2 don't agree; second one appears to be correct to me.) hvc_iucv_devices can be 0..8. This is a counter. (c) if (hvc_iucv_devices > MAX_HVC_IUCV_LINES) If hvc_iucv_devices == 8, (a) allows the code to access hvc_iucv_table[8]. Oops. The Linux kernel CVE team has assigned CVE-2026-53306 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.29 with commit 44a01d5ba8a4d543694461cd3e178cfa6b3f221b and fixed in 5.10.258 with commit 3d3b89e6ab93bdd0efd45828bda6b0e61cc46dff Issue introduced in 2.6.29 with commit 44a01d5ba8a4d543694461cd3e178cfa6b3f221b and fixed in 5.15.209 with commit 484357dff256c816d9466bda35eb765685e4dc86 Issue introduced in 2.6.29 with commit 44a01d5ba8a4d543694461cd3e178cfa6b3f221b and fixed in 6.1.175 with commit 11207e42a332eb8bbcb9fe74df9edd2a807c5607 Issue introduced in 2.6.29 with commit 44a01d5ba8a4d543694461cd3e178cfa6b3f221b and fixed in 6.6.141 with commit fed8b8f33a46db0ee2efdb000f4f630c86ed8ca4 Issue introduced in 2.6.29 with commit 44a01d5ba8a4d543694461cd3e178cfa6b3f221b and fixed in 6.12.91 with commit a76511bc654819425d3b15e77b523d7f9d81f064 Issue introduced in 2.6.29 with commit 44a01d5ba8a4d543694461cd3e178cfa6b3f221b and fixed in 6.18.33 with commit 3104a3f40feb107f77d7116ad9bf6c210ab7babf Issue introduced in 2.6.29 with commit 44a01d5ba8a4d543694461cd3e178cfa6b3f221b and fixed in 7.0.10 with commit f1dc8e72de9aabe5d96767a4e97219ac26b79fe5 Issue introduced in 2.6.29 with commit 44a01d5ba8a4d543694461cd3e178cfa6b3f221b and fixed in 7.1 with commit f2a880e802ad12d1e38039d1334fb1475d0f5241 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-53306 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/hvc/hvc_iucv.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/3d3b89e6ab93bdd0efd45828bda6b0e61cc46dff https://git.kernel.org/stable/c/484357dff256c816d9466bda35eb765685e4dc86 https://git.kernel.org/stable/c/11207e42a332eb8bbcb9fe74df9edd2a807c5607 https://git.kernel.org/stable/c/fed8b8f33a46db0ee2efdb000f4f630c86ed8ca4 https://git.kernel.org/stable/c/a76511bc654819425d3b15e77b523d7f9d81f064 https://git.kernel.org/stable/c/3104a3f40feb107f77d7116ad9bf6c210ab7babf https://git.kernel.org/stable/c/f1dc8e72de9aabe5d96767a4e97219ac26b79fe5 https://git.kernel.org/stable/c/f2a880e802ad12d1e38039d1334fb1475d0f5241