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 A501719E7D1 for ; Thu, 10 Jul 2025 07:37: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=1752133064; cv=none; b=aJir3xwlZYUAkfSNzZSc0KCDRJ1TYtCAp3ByW3wx5HkYnBBp3onmA0TVaHfKE6Us/vseGZPBc2puA4IJgs0Iu9a2v5SOxJJIQiw+8F4w2aXHE7g2ZG3TtSyYU23scNIarYKZGvOngp4Sp/3uPF5NBen/wRSka049TQlsNlwVoLM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752133064; c=relaxed/simple; bh=KJAjHanTUEAFK5zBrQWwXrJUaaBxtBBMw/cRl56fKTg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=gWnH5fKix9d25Q6ku5VdZMF4chvofAuLTdIL4Ew//IYqS1bLJePrA78UhZWaemafikkMYa4XAXUKceW7SXwhEYPF8WwG+eh1yLWMaSfbJWGn+IJ6i3z+1e2wlMF2/nYd6Ue872/uG92eozPOgA0oYK8mlmUUBwePU5kpwYR+BY8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=dROKY4Tb; 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="dROKY4Tb" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D37BAC4CEE3; Thu, 10 Jul 2025 07:37:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1752133064; bh=KJAjHanTUEAFK5zBrQWwXrJUaaBxtBBMw/cRl56fKTg=; h=From:To:Cc:Subject:Date:Reply-to:From; b=dROKY4TbTg9dO0gJLt707dqw+LusF8EBgMX4GctAl2CjqGzKQDB1iVRPuoGabA8G2 K2E3QSdVKBXx6pOFlHwR1B6IGWLy3oGXTuIn/lCef3ygxrXfoNIXbz3jFL+LsdzZTF 6j3NwcNlIA/b26dHyvahT9g7DUjwpCV67cgb9ux8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38265: serial: jsm: fix NPE during jsm_uart_port_init Date: Thu, 10 Jul 2025 09:37:36 +0200 Message-ID: <2025071035-CVE-2025-38265-be37@gregkh> X-Mailer: git-send-email 2.50.1 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=3490; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ehFuPcEZU4RHkOz49N+V7qKKlY3neUf/gM1gkQ660N8=; b=owGbwMvMwCRo6H6F97bub03G02pJDBn5ufud5u6qPXPjSohZ+wKvulQmnpA2hbZFZwP3uu7bf KPuSzdLRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzk/DKGebrV344uMXFnlk25 8fGp9nZue/2ptQwLuuwOptR8e2ooZsO/Nf3Ckg9a0+ftBgA= 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: jsm: fix NPE during jsm_uart_port_init No device was set which caused serial_base_ctrl_add to crash. BUG: kernel NULL pointer dereference, address: 0000000000000050 Oops: Oops: 0000 [#1] PREEMPT SMP NOPTI CPU: 16 UID: 0 PID: 368 Comm: (udev-worker) Not tainted 6.12.25-amd64 #1 Debian 6.12.25-1 RIP: 0010:serial_base_ctrl_add+0x96/0x120 Call Trace: serial_core_register_port+0x1a0/0x580 ? __setup_irq+0x39c/0x660 ? __kmalloc_cache_noprof+0x111/0x310 jsm_uart_port_init+0xe8/0x180 [jsm] jsm_probe_one+0x1f4/0x410 [jsm] local_pci_probe+0x42/0x90 pci_device_probe+0x22f/0x270 really_probe+0xdb/0x340 ? pm_runtime_barrier+0x54/0x90 ? __pfx___driver_attach+0x10/0x10 __driver_probe_device+0x78/0x110 driver_probe_device+0x1f/0xa0 __driver_attach+0xba/0x1c0 bus_for_each_dev+0x8c/0xe0 bus_add_driver+0x112/0x1f0 driver_register+0x72/0xd0 jsm_init_module+0x36/0xff0 [jsm] ? __pfx_jsm_init_module+0x10/0x10 [jsm] do_one_initcall+0x58/0x310 do_init_module+0x60/0x230 Tested with Digi Neo PCIe 8 port card. The Linux kernel CVE team has assigned CVE-2025-38265 to this issue. Affected and fixed versions =========================== Issue introduced in 6.5 with commit 84a9582fd203063cd4d301204971ff2cd8327f1a and fixed in 6.6.94 with commit 3258d7ff8ebfa451426662b23e8f2b51b129afe1 Issue introduced in 6.5 with commit 84a9582fd203063cd4d301204971ff2cd8327f1a and fixed in 6.12.33 with commit 985961dd2688a527a4847300d41beaad475ab7af Issue introduced in 6.5 with commit 84a9582fd203063cd4d301204971ff2cd8327f1a and fixed in 6.14.11 with commit a14c0d2eb3f0b1836fdec22908b87ecffd2ac844 Issue introduced in 6.5 with commit 84a9582fd203063cd4d301204971ff2cd8327f1a and fixed in 6.15.2 with commit abaecb2a4ad021c2f2426e9b2a9c020aef57aca9 Issue introduced in 6.5 with commit 84a9582fd203063cd4d301204971ff2cd8327f1a and fixed in 6.16-rc1 with commit e3975aa899c0a3bbc10d035e699b142cd1373a71 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-38265 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/jsm/jsm_tty.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/3258d7ff8ebfa451426662b23e8f2b51b129afe1 https://git.kernel.org/stable/c/985961dd2688a527a4847300d41beaad475ab7af https://git.kernel.org/stable/c/a14c0d2eb3f0b1836fdec22908b87ecffd2ac844 https://git.kernel.org/stable/c/abaecb2a4ad021c2f2426e9b2a9c020aef57aca9 https://git.kernel.org/stable/c/e3975aa899c0a3bbc10d035e699b142cd1373a71