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 E74763806CE for ; Sat, 15 Aug 2026 06:30:29 +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=1786775431; cv=none; b=Ow4Ikej5sTtZwMTw/WCsmHO0+qm8wT93eOcMocv6uIkjBg8CkvvwOgDq3+TfoEmEvZX42PlbioKpOQsiK0vukqcOaJSdiPGWOe0dwxGeNG5CxuB6heeJPQjpBxtalSgS+zcJQfjHnjrFILm8+fuFus1hs849ush1ku3/OtkWnHs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786775431; c=relaxed/simple; bh=JS3k76pzpZLr0hkONs7NSrx4yXoje/EsUQHtxl4UgmI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=pb+NiwbAhXVkiMItn1HpRTz8FqAdxNcdfJkYe00QN444F1Q/7jTUpBgh25Ws9IeCGpiCD2Jfk9dSQ+VsVrNfRj4gNHFTtFtk5hp1Jev8UdCP1yYRneSa3KRh22kTWzRatOQ7O7qKRnE48xyPmbjWNB6oRTIIz0UeEToMdc6V+1g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=sw899LBB; 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="sw899LBB" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 335091F000E9; Sat, 15 Aug 2026 06:30:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786775429; bh=TJyDVz6Utq1xHeZkyeR926OttaKDoX7EOCcIs0OAEpA=; h=From:To:Cc:Subject:Date:Reply-To; b=sw899LBBAfx9pIoxDjS1Kx4XdkY4k7oGhnF/rMxx+LoGgJX/Iisxw9D2YpmAWgCZh T0xIYLn+5+xZp1mTG/8QyEyApK9Q8bMBKfK2Wz8p0Lls2WQH5ZKd18ZCMfevHbToqx 8zDAYvHe+703vWZ3bmhQTVieYfljcPQhKSpSJaL0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-72482: gpib: fix double decrement of descriptor_busy in command_ioctl() Date: Sat, 15 Aug 2026 15:09:21 +0900 Message-ID: <2026081537-CVE-2026-72482-ebe4@gregkh> X-Mailer: git-send-email 2.55.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=2839; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=lkz64gZjVEXd5rJhEHnKK2REc9Frx8xYhg5cMhxpDBA=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkNDH83b3KM+BOzf8ape69+FGzw04283C2gvO7I5r2zb QtuinbUdcSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEOh0YFhza3z6bse/BAdd7 65aqdUhqmzLnVzDMd/vqz8srZuzXWzn9+nLu0JKpDfvXAAA= 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 double decrement of descriptor_busy in command_ioctl() commit d1857f8296dc ("gpib: fix use-after-free in IO ioctl handlers") introduced a descriptor_busy reference counter to pin struct gpib_descriptor across IO ioctl operations. In command_ioctl(), the error path inside the loop decrements descriptor_busy and breaks, but execution then falls through to the unconditional decrement after the loop, underflowing the counter to -1. This re-enables the use-after-free that the original fix was meant to prevent: a concurrent close_dev_ioctl() sees descriptor_busy == 0 on an actively-used descriptor and frees it. Remove the early decrement from the error path. The post-loop decrement already handles all exit paths, matching the correct pattern used in read_ioctl() and write_ioctl(). The Linux kernel CVE team has assigned CVE-2026-72482 to this issue. Affected and fixed versions =========================== Issue introduced in 6.18.22 with commit cae26eff1b56d78bed7873cf3e60a2b1bdd4da6c and fixed in 6.18.40 with commit fdee9f207a48ce204ec6cfceaa1459d2473600a5 Issue introduced in 7.0 with commit d1857f8296dceb75d00ab857fc3c61bc00c7f5c6 and fixed in 7.1.5 with commit 8b5f1d295dda8677e4545ce340053fcfa8b634c7 Issue introduced in 7.0 with commit d1857f8296dceb75d00ab857fc3c61bc00c7f5c6 and fixed in 7.2-rc1 with commit c4faab452b3c1ada003d49c477609dd80523b9bf Issue introduced in 6.19.12 with commit 28c75dd143ead62e0dfac564c79d251e21d5d74b 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-72482 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/common/gpib_os.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/fdee9f207a48ce204ec6cfceaa1459d2473600a5 https://git.kernel.org/stable/c/8b5f1d295dda8677e4545ce340053fcfa8b634c7 https://git.kernel.org/stable/c/c4faab452b3c1ada003d49c477609dd80523b9bf