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 D5C1E3F166A for ; Wed, 27 May 2026 12:24:45 +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=1779884687; cv=none; b=RoJu1vmMLM+OBYYxMbqeV1vkV5H3YW0NgtyyPgHzl2XMLvGKi1TYQfzA1s0vOftcg7B27d3S+jt9YBAYrQObiqcrnIu65h1O/cnwaVNaonaCaUSs6wiAMinrEkDWjEeDLUyFs26LOMDlhavtqEuswL2Buabq+wpJ1Lf+XQrLSJs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779884687; c=relaxed/simple; bh=g08ZGbyuIdn9GgMAFZkvPpi7sw/g3TgUz76rZSfa1h4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=OL+hgL0k/CCG9K4W/lx+gR8qDBYvG0CDPfDHK3qSChEmtL44DeeMu7iqbi0UdPz44aeaBlncaZYU5rEIwYKMAHqyRlDsXobSaFWJH5ELUPDeYXaBUAuPtIYkNl3Ie04Vp7vFdCAdQonXO1bCjLXtViZxnlP2oC+kdbMbfGPxPGg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ENGOKTmd; 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="ENGOKTmd" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3368B1F000E9; Wed, 27 May 2026 12:24:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779884685; bh=kVDAukdrh6pW25ETaPflUmhPnc/nPirfk0xdVd2aXEI=; h=From:To:Cc:Subject:Date:Reply-To; b=ENGOKTmdBs1b4yxDEJlZ7ZsoYNHtw9meBC/896nXARKaMhA3w/qgmnfujWAwHWcTq MraXVJfqOBI8WljHNTLL+OU+ax9wNRHvgImL8udCmX5ZvdhUyZg+Gas8xPDZJQnw5q REfUnKbf0Tf88mITYqBpQU6h5LlYgqng+WyftkM8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-45939: gpib: Fix memory leak in ni_usb_init() Date: Wed, 27 May 2026 14:19:41 +0200 Message-ID: <2026052728-CVE-2026-45939-1264@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=2446; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=e8ctPu0lX2uy9znGaUwT38wKnAkR4wpj7ePMkYsP3es=; b=owGbwMvMwCRo6H6F97bub03G02pJDFliD0U/ba4MjTR29T246/bhc2F91tOXX3rwc07dl/+6r J8s9/mydsSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEfssxzFMqb1gR/VU5+mYK l5jM3WtzL55ZdI1hwWp7dsVTxhMlNIP8Q9PcWzeahZfdAgA= 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: gpib: Fix memory leak in ni_usb_init() In ni_usb_init(), if ni_usb_setup_init() fails, the function returns -EFAULT without freeing the allocated writes buffer, leading to a memory leak. Additionally, ni_usb_setup_init() returns 0 on failure, which causes ni_usb_init() to return -EFAULT, an inappropriate error code for this situation. Fix the leak by freeing writes in the error path. Modify ni_usb_setup_init() to return -EINVAL on failure and propagate this error code in ni_usb_init(). The Linux kernel CVE team has assigned CVE-2026-45939 to this issue. Affected and fixed versions =========================== Issue introduced in 6.13 with commit 4e127de14fa78bcd98c6459b0b984b8266cd0203 and fixed in 6.18.14 with commit 9c97fcfb7a62dea893104a046d544da8ac23370b Issue introduced in 6.13 with commit 4e127de14fa78bcd98c6459b0b984b8266cd0203 and fixed in 6.19.4 with commit c899d4b62c0757a280831e89c1f3801b597e8f38 Issue introduced in 6.13 with commit 4e127de14fa78bcd98c6459b0b984b8266cd0203 and fixed in 7.0 with commit b89921eed8cf2d97250bac4be38dbcfbf048b586 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-45939 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/gpib/ni_usb/ni_usb_gpib.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/9c97fcfb7a62dea893104a046d544da8ac23370b https://git.kernel.org/stable/c/c899d4b62c0757a280831e89c1f3801b597e8f38 https://git.kernel.org/stable/c/b89921eed8cf2d97250bac4be38dbcfbf048b586