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 2137C13EFE3 for ; Wed, 1 Oct 2025 08:07:40 +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=1759306061; cv=none; b=bd/6tRoageZ+mrCDInAGUQKJtqUM9As4OG8SdU3fR1783dy2wWRZYGVgwsjCuJ8qUmCwRn10aI/SYYzg2zDNchZpQ/DRhaTK6axtonrJwy4Cnel/UZfHF2J2wy0l+pmHSoZFiPNvkuF/wDZlHqhHuShxLHRZ3GmchfxjYVK/L3g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759306061; c=relaxed/simple; bh=Wtjh93B4H5tKLLZpwLbOYEWF1YLhpgznFglZB5XSfuw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=CieChOn9i9R+m/8DORF+uppZ2nRHkP7C7r749DtY4YxBnICElODAZ//WfCUc0wNKdKmsoibsxZmkSRShJWtS7P2Eyuqtoc/Mp76zkTEU2s0a7ULO8FBek8uXul6PU4r7oqZ3o/PwNXxRTigJdt2ojTEG2nwKoHmfQ9LEvVI8/+8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=GiWakN7x; 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="GiWakN7x" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 42D51C4CEF4; Wed, 1 Oct 2025 08:07:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759306060; bh=Wtjh93B4H5tKLLZpwLbOYEWF1YLhpgznFglZB5XSfuw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=GiWakN7xs9IX+QIzjGcmjsCwbwu+f2fPcTYCkprnXRNjB2K7AAVYSRr/1kgRhmshq p0N2TQRWzv0T7+vax0fWiuS/9JkAyXHD/yw2lWQ30Sv8hBEkw76hgZgoeEo3VhlxCd 5KXpEFVAJceFDyuNvWp6XL1jysLlvRF4LueFtDy8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-39926: genetlink: fix genl_bind() invoking bind() after -EPERM Date: Wed, 1 Oct 2025 10:07:26 +0200 Message-ID: <2025100125-CVE-2025-39926-06ea@gregkh> X-Mailer: git-send-email 2.51.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=2523; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=jo9wt4lUPs7aepEWmKtWRx+k1PIh/jGVdgDYeT0+OLg=; b=owGbwMvMwCRo6H6F97bub03G02pJDBl3HtqmhxzUjX58acIEpbyKyz9MNql/Sg96eKXo5iKnN SkzHrze3hHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQATachimO/XbOpraxNZUstp UcwTtSzl0+Gt0gwLjm6ce2/OnDm9J3xeSl+eFbQ6I2aZJwA= 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: genetlink: fix genl_bind() invoking bind() after -EPERM Per family bind/unbind callbacks were introduced to allow families to track multicast group consumer presence, e.g. to start or stop producing events depending on listeners. However, in genl_bind() the bind() callback was invoked even if capability checks failed and ret was set to -EPERM. This means that callbacks could run on behalf of unauthorized callers while the syscall still returned failure to user space. Fix this by only invoking bind() after "if (ret) break;" check i.e. after permission checks have succeeded. The Linux kernel CVE team has assigned CVE-2025-39926 to this issue. Affected and fixed versions =========================== Issue introduced in 6.9 with commit 3de21a8990d3c2cc507e9cc4ed00f36358d5b93e and fixed in 6.12.48 with commit 98c9d884047a3051c203708914a874dece3cbe54 Issue introduced in 6.9 with commit 3de21a8990d3c2cc507e9cc4ed00f36358d5b93e and fixed in 6.16.8 with commit 8858c1e9405906c09589d7c336f04058ea198207 Issue introduced in 6.9 with commit 3de21a8990d3c2cc507e9cc4ed00f36358d5b93e and fixed in 6.17 with commit 1dbfb0363224f6da56f6655d596dc5097308d6f5 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-39926 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: net/netlink/genetlink.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/98c9d884047a3051c203708914a874dece3cbe54 https://git.kernel.org/stable/c/8858c1e9405906c09589d7c336f04058ea198207 https://git.kernel.org/stable/c/1dbfb0363224f6da56f6655d596dc5097308d6f5