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 EE9451AC458 for ; Wed, 26 Feb 2025 01:58:42 +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=1740535123; cv=none; b=sgTYoAmbvQA6rTXl5jog1Cu7nlOxWhx18pBemRRYHAa0hSizjiP6Gy63fkbR73x4f6m+MXweXKFHDfRWoHeaSkU6wCjmTwtxqghbVaHN4WBrWS+ky4+mj8uLAJpoiDBg2zaC9Zv8DUrv7664O1G3J/Md+Xg015lyD2agXbHzVVc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740535123; c=relaxed/simple; bh=+Vzkg2xVQ2ktjUVV74B2VHLxlnjcp98acsfHQiaO7No=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=b4jbEWQkW0gmWxctPtHGjikrhgO7hOvvUIhmtsuSaFtxovrxID/dIxBIsNwJvyHzc7R9FD4YG/dJTCKOVyfJwHMspd+MC1mXZOc1j3mx5VX6pRt4Mh0aG1w3KocOxtAD5VGByzDY6yf8ywveNzFdZEgDi99RItlqNOhBJTQKgvw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=OKcyUMWD; 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="OKcyUMWD" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C20E8C4CEDD; Wed, 26 Feb 2025 01:58:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740535122; bh=+Vzkg2xVQ2ktjUVV74B2VHLxlnjcp98acsfHQiaO7No=; h=From:To:Cc:Subject:Date:Reply-to:From; b=OKcyUMWDJaIi8VzSpY8GCWrR6zKnFtiQV5ZkCiMvAhSXTkqsmoz3OoT9vX1ZKOjW3 ktn+DVUi4RIg6rW5Vd8h6VSWwiHd8MEWGDWFpv6U0DAmWAQ2fKjT4T0YAgm7pBCUyi v1NUMCffo6Hx17KXm9UR5ui6zQsKUlvD3kkkNzD4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49140: Revert "nbd: fix possible overflow on 'first_minor' in nbd_dev_add()" Date: Wed, 26 Feb 2025 02:55:45 +0100 Message-ID: <2025022607-CVE-2022-49140-974f@gregkh> X-Mailer: git-send-email 2.48.1 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=2189; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=+Vzkg2xVQ2ktjUVV74B2VHLxlnjcp98acsfHQiaO7No=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7SuyfP2cJ68/bzLLm9boGBwEtRrti05ywNw+ZE/9HP zutOlu5I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACayIZ9hnuHMvRdLMuJiKjJt Xx/9IOq9jH3HV4b58UIBv2Pqk3xj15wVXGZjM1vj0qEwAA== 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: Revert "nbd: fix possible overflow on 'first_minor' in nbd_dev_add()" This reverts commit 6d35d04a9e18990040e87d2bbf72689252669d54. Both Gabriel and Borislav report that this commit casues a regression with nbd: sysfs: cannot create duplicate filename '/dev/block/43:0' Revert it before 5.18-rc1 and we'll investigage this separately in due time. The Linux kernel CVE team has assigned CVE-2022-49140 to this issue. Affected and fixed versions =========================== Fixed in 5.15.34 with commit 3b14aa053181709d42319d4145855025c23ddd12 Fixed in 5.16.19 with commit 24781c1b691c60c42748c669973d567a90573337 Fixed in 5.17.2 with commit 9d73b40f979737029bac724c39648016da3f914c Fixed in 5.18 with commit 7198bfc2017644c6b92d2ecef9b8b8e0363bb5fd 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-2022-49140 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/nbd.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/3b14aa053181709d42319d4145855025c23ddd12 https://git.kernel.org/stable/c/24781c1b691c60c42748c669973d567a90573337 https://git.kernel.org/stable/c/9d73b40f979737029bac724c39648016da3f914c https://git.kernel.org/stable/c/7198bfc2017644c6b92d2ecef9b8b8e0363bb5fd