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 48025288CB2 for ; Fri, 6 Jun 2025 13:43:48 +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=1749217428; cv=none; b=HLHPbZoZdAL3bR1LnoyeSbl6b6IQyMRCqjtFFQ+VlapteEo1gApNz8l+2FJpLRB1upp14OynoNXNlMj4wynk5TgA9F8XNEusqSQ8Eu8/E+U/B+kuX6YgGFItng8PMB0sIA6LqNZYP7Qq6D9rj3D4caX4Kn6FnVUEDvH06h6dWX0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749217428; c=relaxed/simple; bh=QAZJMtlf4xybWIYNw5z/1RkyI8yxX9kBg4j9sDXJSws=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Vt3q2QUkO2VskSnm4vMN5GK3TSDXQrOMM7wc0Hf2g0jV0bKj+hu1TWrjfRBIZsiTRAkUYsafbHM6lpO+R3q4kmOcC9xZTJhnrPn7gImVTTwC4TV8Zja35CZaWXcp1CTBh8uNtYES9Tt07Rh267XoWkqEQD6Q8uXLBPZUWedH5JE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=vTx31Cso; 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="vTx31Cso" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C8FB6C4CEEB; Fri, 6 Jun 2025 13:43:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1749217428; bh=QAZJMtlf4xybWIYNw5z/1RkyI8yxX9kBg4j9sDXJSws=; h=From:To:Cc:Subject:Date:Reply-to:From; b=vTx31CsoZ6pS7qOD/kv0eyJRGnV8Nv2QemUP2AhxhjJN1EOM3hL1P1yjm5ZYDrSbO i7a0jnA+Fqaj9qlzf3pgpOxR72g4k0eGPsazdoHqrWB05J31uWjeVnxKE7QxzxRm4h EZ7EXS5I5dr5mc+eH5PMfqxwjSVfYWLBlVypjpKk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38002: io_uring/fdinfo: grab ctx->uring_lock around io_uring_show_fdinfo() Date: Fri, 6 Jun 2025 15:43:45 +0200 Message-ID: <2025060644-CVE-2025-38002-5e89@gregkh> X-Mailer: git-send-email 2.49.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=2218; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=K4alefuIGhDkjKqM8W46Fm2d/NfMsQSNfQZ73z0sfS8=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlOHyZIBuWXateWrJRlfRnQw6jKu/28bM2JrwuOt22YM vO6IPeyjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIigyGeVaBk/52TJoZLHxT nFFG3qDhzvV/LQwLDnLM2DUj9Ns79VVrL29Y11k1+WNdLgA= 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: io_uring/fdinfo: grab ctx->uring_lock around io_uring_show_fdinfo() Not everything requires locking in there, which is why the 'has_lock' variable exists. But enough does that it's a bit unwieldy to manage. Wrap the whole thing in a ->uring_lock trylock, and just return with no output if we fail to grab it. The existing trylock() will already have greatly diminished utility/output for the failure case. This fixes an issue with reading the SQE fields, if the ring is being actively resized at the same time. The Linux kernel CVE team has assigned CVE-2025-38002 to this issue. Affected and fixed versions =========================== Issue introduced in 6.13 with commit 79cfe9e59c2a12c3b3faeeefe38d23f3d8030972 and fixed in 6.14.8 with commit bdb7d2ec2e31c46c45d1f32667dfa8216a72705e Issue introduced in 6.13 with commit 79cfe9e59c2a12c3b3faeeefe38d23f3d8030972 and fixed in 6.15 with commit d871198ee431d90f5308d53998c1ba1d5db5619a 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-38002 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: io_uring/fdinfo.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/bdb7d2ec2e31c46c45d1f32667dfa8216a72705e https://git.kernel.org/stable/c/d871198ee431d90f5308d53998c1ba1d5db5619a