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 7DC922D1911 for ; Thu, 3 Jul 2025 08:38:44 +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=1751531924; cv=none; b=NFp4vy4cxHt6jfakDlb0+8gws++yzXH8NcevcH3vRwQCK2dxfFUrfuzTx/Cm3OzelrP179Z2W51jbnV07lVe2HYbB3OC3PrL7ovybrXxNFYGlgahTiWyG13fnPMd4JaNtnBPGmpOWUWjqgWjda/9S0VphusXF5atUW2CbRojK94= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751531924; c=relaxed/simple; bh=473wXYX27W92/91HXc9bq5ONxV6yK3erOUfEvY4RDuE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=rtEA+LiGaHVlm5l0n7B+uHZI3xuIruE7q93FnZUepdNWDvQEuy8/WYwqeamkBrkR91w3nqAxMGOBZor1krtZ6BsbbA2wPNU1e1I62BO2P0tyZEc2cMfe0pErygACV4yBcYpIB/sZHMkeklw9+Uyx3c4f8GOrl6anNh5UBlrqkZI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=gixAdu/7; 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="gixAdu/7" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E3287C4CEE3; Thu, 3 Jul 2025 08:38:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1751531924; bh=473wXYX27W92/91HXc9bq5ONxV6yK3erOUfEvY4RDuE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=gixAdu/74cxlGNe9VTtPi5fq/kmjDOh1Oownt7d1LvuRaorGo9KO8t6Fx98eiXJ6r lZeXNCBreWYLZnhFPwdBnh6Iz+86q6DWfSb7ozPUdtDbc/1Lsc5ReSSMl6yabopH2G ZJmQ1hNEQ0zy82Bc3A9VXLi4DdosZWySvODvpN4s= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38135: serial: Fix potential null-ptr-deref in mlb_usio_probe() Date: Thu, 3 Jul 2025 10:35:52 +0200 Message-ID: <2025070331-CVE-2025-38135-20aa@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=3357; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=8wdQcRNEZq3N6kq3aOve8KeV9yjBdZtY14Jdi1xtJQA=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlpDld2zV6+bYPBu7OXjppZs9zdyP+18OqJ7kX9Vv5hF Wx3nM+f64hlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJMDEyzPcMPGC4f4uljlXN +6hDGilrpSI70hkW9DlGqubrb7r2WP2C74Jd839bO+ieAQA= 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: serial: Fix potential null-ptr-deref in mlb_usio_probe() devm_ioremap() can return NULL on error. Currently, mlb_usio_probe() does not check for this case, which could result in a NULL pointer dereference. Add NULL check after devm_ioremap() to prevent this issue. The Linux kernel CVE team has assigned CVE-2025-38135 to this issue. Affected and fixed versions =========================== Issue introduced in 5.2 with commit ba44dc04300441b47618f9933bf36e75a280e5fe and fixed in 5.4.295 with commit a05ebe384c7ca75476453f3070c67d9cf1d1a89f Issue introduced in 5.2 with commit ba44dc04300441b47618f9933bf36e75a280e5fe and fixed in 5.10.239 with commit 81159a6b064142b993f2f39828b77e199c77872a Issue introduced in 5.2 with commit ba44dc04300441b47618f9933bf36e75a280e5fe and fixed in 5.15.186 with commit 19fd9f5a69363d33079097d866eb6082d61bf31d Issue introduced in 5.2 with commit ba44dc04300441b47618f9933bf36e75a280e5fe and fixed in 6.1.142 with commit 548b0e81b9a0902a8bc8259430ed965663baadfc Issue introduced in 5.2 with commit ba44dc04300441b47618f9933bf36e75a280e5fe and fixed in 6.6.94 with commit a6c7c365734cd0fa1c5aa225a6294fdf80cad2ea Issue introduced in 5.2 with commit ba44dc04300441b47618f9933bf36e75a280e5fe and fixed in 6.12.34 with commit c23d87b43f7dba5eb12820f6cf21a1cd4f63eb3d Issue introduced in 5.2 with commit ba44dc04300441b47618f9933bf36e75a280e5fe and fixed in 6.15.3 with commit e1b144aebe6fb898d96ced8c990d7aa38fda4a7a Issue introduced in 5.2 with commit ba44dc04300441b47618f9933bf36e75a280e5fe and fixed in 6.16-rc1 with commit 86bcae88c9209e334b2f8c252f4cc66beb261886 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-38135 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/milbeaut_usio.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/a05ebe384c7ca75476453f3070c67d9cf1d1a89f https://git.kernel.org/stable/c/81159a6b064142b993f2f39828b77e199c77872a https://git.kernel.org/stable/c/19fd9f5a69363d33079097d866eb6082d61bf31d https://git.kernel.org/stable/c/548b0e81b9a0902a8bc8259430ed965663baadfc https://git.kernel.org/stable/c/a6c7c365734cd0fa1c5aa225a6294fdf80cad2ea https://git.kernel.org/stable/c/c23d87b43f7dba5eb12820f6cf21a1cd4f63eb3d https://git.kernel.org/stable/c/e1b144aebe6fb898d96ced8c990d7aa38fda4a7a https://git.kernel.org/stable/c/86bcae88c9209e334b2f8c252f4cc66beb261886