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 53DF33033CB for ; Sun, 19 Jul 2026 14:59:09 +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=1784473150; cv=none; b=CIU1HO4YP4Ts8IODUlnps+fUkdHCIf3SPWe8m2K+NmIHPUDSXBwFocZhAe0oofQxaOIzARZwTRujx3gc1veeBq3wTRxhe/M25Jg6zGYmE3S7Wq85Jq3WhMxyKtC3hJy5KUXp2vKDGKkWbHU+1TBiFiA3W/XmvsLoUyTUuXIbDIQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784473150; c=relaxed/simple; bh=XsxtHfll0xyaC1mCpHoUergiVqgiqJHTQvHXYwIG+WE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=YQP65QUDU4mvCcX5LrrBtmXpA0sTtRxIIi86gj0ic51MSz4+YLYQtLloXmyspvr0w1/6Uzw0XlmS/qFl+u28IcwcvE0RxjsqscC4bQvKle26pda2iqPh7pZpeMcyqZ9maskpW33w7LiAy+GLko12/sK+j9n7+tbOB86ohD2nmPo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=1US4xM1Q; 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="1US4xM1Q" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 861031F000E9; Sun, 19 Jul 2026 14:59:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784473149; bh=HK+Fl7hh1n9S7D9sBgKjjy0UD4G5nsNWyzSdfO4Cpso=; h=From:To:Cc:Subject:Date:Reply-To; b=1US4xM1QUnZp64YQ0Bp/5rgsZnTl+rCnGGQ0jg73+gTEOfcWrt8XZv8+/lePNKVWz vp9eJYI7a0HvcAKBvI7PU+sIJ5W82wZCtd3n8xvvwCgUZuf44WlKl4quK/Ge/FdD0R gSdDnzrGHrWCutE81OFS+zm+5LMQSC1siUV9vrCk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-63907: uio: uio_pci_generic_sva: fix double free of devm_kzalloc() memory Date: Sun, 19 Jul 2026 16:56:07 +0200 Message-ID: <2026071945-CVE-2026-63907-709c@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=2625; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ZNAE+5y3i90wHym5pJOoVEWTXtGdvURwKfF8dsjkskA=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkxTwsT726w0rktX3Ho78/Kz9l2J3jvzHo851CzTl6g/ fvcjEtvOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAi/C8Z5ns4BCRcWOmy+oD8 xut7Z2g6P4qeM5Nhvvev4ANtphbPf4uvybjuU//Y/7MGBwA= 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: uio: uio_pci_generic_sva: fix double free of devm_kzalloc() memory uio_pci_sva allocates struct uio_pci_sva_dev with devm_kzalloc() in probe(), but then calls kfree(udev) both on the probe() error path (label out_free) and again in remove(). Because devm_kzalloc() allocations are devres-managed and are freed automatically when the device is detached (including after a failing probe() and during driver unbind), the explicit kfree() can lead to a double free. If probe() fails after devm_kzalloc(), the error path frees udev and devres cleanup will free it again when the core unwinds the partially bound device. On normal driver removal, remove() frees udev and devres will free it again when the device is detached. This issue was identified by a static analysis tool I developed and confirmed by manual review. Fix by removing the manual kfree() calls and dropping the now-unused label. The Linux kernel CVE team has assigned CVE-2026-63907 to this issue. Affected and fixed versions =========================== Issue introduced in 6.19 with commit 3397c3cd859a2c51962ad032dcf97961d42f9db2 and fixed in 7.0.12 with commit e344865bfca4eb37ed8d7ac5917226e49fcec7ce Issue introduced in 6.19 with commit 3397c3cd859a2c51962ad032dcf97961d42f9db2 and fixed in 7.1 with commit f74c8696f14149d5e43cc28b015326a759c48f00 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-63907 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/uio/uio_pci_generic_sva.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/e344865bfca4eb37ed8d7ac5917226e49fcec7ce https://git.kernel.org/stable/c/f74c8696f14149d5e43cc28b015326a759c48f00