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 F2B7D11713 for ; Tue, 29 Oct 2024 00:51:17 +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=1730163078; cv=none; b=DFfW4psIhD/w21DV8fgPC4L5kFTrv1eMH3Aw1cTkyTrdqkVOVKajyWDvlxCyDld0ErMHSauouKEg8+Cpg/4ak/r8ZuqNXm8zoNRWVtnl1URyj6jsWW+9wVxf7jiweEChoWGgeFQqH5IAjqeLTd4gUltWjjOWA18zrrSu8I7dHTM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730163078; c=relaxed/simple; bh=uoUkm+SOVSLOfQmpJ4I5F5gV2Irenu5IoYEwGu5U760=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=YD5iby+dkmviBUfMk4N8NwgLMNOS9q/VDzFQ3jkROhIU8F2o1I/E3Bfs0Sq9Zdl321aKVt0YL1A/28nyc0dJe41HuAFDVNMYBtovkv2UUbkP57yTgh+wIybeNOfb5azAMWKZ/sVcYmoivIEMymwvAV1LZ6sH/VEY6a3rUl9iWNI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=0Q5tXibE; 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="0Q5tXibE" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5B911C4CEC3; Tue, 29 Oct 2024 00:51:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1730163077; bh=uoUkm+SOVSLOfQmpJ4I5F5gV2Irenu5IoYEwGu5U760=; h=From:To:Cc:Subject:Date:Reply-to:From; b=0Q5tXibEnKe35+Yu2onvZGNll4B1/57GkhCaYWMIsyyxxtuBgk+eMXfODRDxNMMRv oEsK/ClFm6zIbmEp366J/HD7/SmhmEJmnINgoROpPgXm+MtWB8dGdqpJl4L3lvhc9W K9rvAkwnS5vVobiFV1eYGlSRW4y5h1X6bGdjhYFQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-50080: ublk: don't allow user copy for unprivileged device Date: Tue, 29 Oct 2024 01:50:43 +0100 Message-ID: <2024102936-CVE-2024-50080-72ba@gregkh> X-Mailer: git-send-email 2.47.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=2048; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=uoUkm+SOVSLOfQmpJ4I5F5gV2Irenu5IoYEwGu5U760=; b=owGbwMvMwCRo6H6F97bub03G02pJDOkKhrG72a7bCfEfeswwUWaD7n7ZBJFcBak5C8p/zn093 evQVOevHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRJfYM8zRU7jjJCM40mvXt 45SfU7SOi8uLlTIsOK84JbhUJuZiU5RzsuPpezenZIacAwA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: ublk: don't allow user copy for unprivileged device UBLK_F_USER_COPY requires userspace to call write() on ublk char device for filling request buffer, and unprivileged device can't be trusted. So don't allow user copy for unprivileged device. The Linux kernel CVE team has assigned CVE-2024-50080 to this issue. Affected and fixed versions =========================== Issue introduced in 6.5 with commit 1172d5b8beca and fixed in 6.6.58 with commit 6414ab5c9c9c Issue introduced in 6.5 with commit 1172d5b8beca and fixed in 6.11.5 with commit 8f3d5686a240 Issue introduced in 6.5 with commit 1172d5b8beca and fixed in 6.12-rc4 with commit 42aafd8b48ad 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-2024-50080 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/block/ublk_drv.c include/uapi/linux/ublk_cmd.h 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/6414ab5c9c9c068eca6dc4fd3a036bc4b83164dc https://git.kernel.org/stable/c/8f3d5686a2409877c5e8e2540774d24ed2b4a4ce https://git.kernel.org/stable/c/42aafd8b48adac1c3b20fe5892b1b91b80c1a1e6