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 14BEF33343D for ; Wed, 24 Dec 2025 12:27:26 +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=1766579246; cv=none; b=OSQ5zTKOYfATbgOfW32SNo3FAGwqVNHQsQbK6g4T9XxKXkz17THJfjcAEtbYSwGyzYtnPcZrFSd7GE66YV55ccdNhJSuteP6anfM3tnkQKZ1/6ouL9TnnmQfY46x3J3f4tZme2MtByZBtbJBqCGXZEMQZPuOLInjZEti4CIVG4c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766579246; c=relaxed/simple; bh=dFFh8K/bdtCRZItA2kLuJiVkbEAm5bFzcR1DqN6lja0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=LPRW0/px9HzjlXGRrbOGZWeoJdPNxdpgbDvT5Ez+i2YP9lUWmK/VrVnCZxb1BmBkBMBy25/Goh9lPJmQYK6A0T7R+OZKymk3WeNKs6bOluCyTKBNkfYiyQ9CCVIXt3vIYAcQ73QMbjy6Gur4GYvuCZtxwfg8fdCpkMmbHObIXiI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=jRxJVTBy; 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="jRxJVTBy" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 94199C16AAE; Wed, 24 Dec 2025 12:27:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1766579245; bh=dFFh8K/bdtCRZItA2kLuJiVkbEAm5bFzcR1DqN6lja0=; h=From:To:Cc:Subject:Date:Reply-To:From; b=jRxJVTByEFyl5lBKrib7Gqxkw0gqo/K4S2SG4t1w5M1gfG5LeaUVZ5GJer7o+5Vmp DNbxNdsWq7lpeJUn5woog4x2OUIMXO9pfUedfLaqdRpS6N7i9IGAmY/pyp+MeFTETl G5Mh5KPLnUTLKKwZSqnmIU7YtA5NzpbMzHKqjNFs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50733: usb: idmouse: fix an uninit-value in idmouse_open Date: Wed, 24 Dec 2025 13:26:32 +0100 Message-ID: <2025122421-CVE-2022-50733-a587@gregkh> X-Mailer: git-send-email 2.52.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=3079; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=3OIfVt60oemlBSp9/WOiPcS5elVxqMeDYXa2IjdbhE8=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnet9/+e3U2QE22+ZXW7J9HVp6bfUO4bpppdpiVWIlRz bZ/rk8WdcSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEpl1jWHAkWm7D9OrJXssv TZ7sy8ea/3r9ylUMcyXmWt2feFeno9xuzvqaH5qhhUlVHwA= 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: usb: idmouse: fix an uninit-value in idmouse_open In idmouse_create_image, if any ftip_command fails, it will go to the reset label. However, this leads to the data in bulk_in_buffer[HEADER..IMGSIZE] uninitialized. And the check for valid image incurs an uninitialized dereference. Fix this by moving the check before reset label since this check only be valid if the data after bulk_in_buffer[HEADER] has concrete data. Note that this is found by KMSAN, so only kernel compilation is tested. The Linux kernel CVE team has assigned CVE-2022-50733 to this issue. Affected and fixed versions =========================== Fixed in 4.9.331 with commit b3304a6df957cc89a0590cb505388d659bf3db4c Fixed in 4.14.296 with commit 7dad42032f68718259590b0cc7654e9a95ff9762 Fixed in 4.19.262 with commit f589b667567fde4f81d6e6c40f42b9f2224690ea Fixed in 5.4.220 with commit 1eae30c0113dde7522088231584d62415011a035 Fixed in 5.10.150 with commit b8bbae3236ab7dccc66c42bc3f7cdbcfc0786e54 Fixed in 5.15.75 with commit 20b8c456df584ebb2387dc23d40ebe4ff334417c Fixed in 5.19.17 with commit 6163a5ae097bc78fa26c243fb384537e25610fd7 Fixed in 6.0.3 with commit adad163d1cff248a5df9f7cec50158e6ca89f33b Fixed in 6.1 with commit bce2b0539933e485d22d6f6f076c0fcd6f185c4c 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-50733 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/usb/misc/idmouse.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/b3304a6df957cc89a0590cb505388d659bf3db4c https://git.kernel.org/stable/c/7dad42032f68718259590b0cc7654e9a95ff9762 https://git.kernel.org/stable/c/f589b667567fde4f81d6e6c40f42b9f2224690ea https://git.kernel.org/stable/c/1eae30c0113dde7522088231584d62415011a035 https://git.kernel.org/stable/c/b8bbae3236ab7dccc66c42bc3f7cdbcfc0786e54 https://git.kernel.org/stable/c/20b8c456df584ebb2387dc23d40ebe4ff334417c https://git.kernel.org/stable/c/6163a5ae097bc78fa26c243fb384537e25610fd7 https://git.kernel.org/stable/c/adad163d1cff248a5df9f7cec50158e6ca89f33b https://git.kernel.org/stable/c/bce2b0539933e485d22d6f6f076c0fcd6f185c4c