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 C28DB11718 for ; Sun, 25 Feb 2024 14:04:08 +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=1708869848; cv=none; b=IZR7R5bZIWeIdiloHAV7H6DZrigauMc5e0c73OC4LQQlcSkqVmbjko+yQZ8zgH1NK9Sa06wndUWB6akg+Qhp00+OdLDNcRMOozz/ilNjphiYpI+iY9cglRY2p+Y/6VpridNm+6R/Z5rz2r6Uomi47GY07yoR6odlmQiGLqN4Vjg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708869848; c=relaxed/simple; bh=PB6VvnbqDXDnZQo257MwpXnzWOu1DnSTVGFan5CUbl8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=fk41+wlorvgv22Q/6NHruwkFvF2jn1rNojyzpgqbM8Psz42Z1sq+SJq4D/ZaVE26kWh8nP7s78fpfwsCPJY7GzoFLuVT3ja8K4lFBCkspeOT9p1UMH/mGNgmo8wZo6cjJsOSUukZHglgKICeUhURlLROyn54nyovWjEwwyGJFJ8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ntHrzaG6; 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="ntHrzaG6" Received: by smtp.kernel.org (Postfix) with ESMTPSA id F1D01C433F1; Sun, 25 Feb 2024 14:04:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1708869848; bh=PB6VvnbqDXDnZQo257MwpXnzWOu1DnSTVGFan5CUbl8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=ntHrzaG6rnccq7jz5J/8C5I9cjuiLpjGOcWoN5kuMxvIggdEVqE14pw5ZzWtTMVb9 Ckv2Id8epFr29ZwytfubIhj51XHWwuXk/6qjn2Xdp8LGuscWTEw48zGQQPRFuP1l5/ Cy0a0S5LY3SLxNCKFL0hMILnDJf2i4xdYnYRM5Wg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-46905: net: hso: fix NULL-deref on disconnect regression Date: Sun, 25 Feb 2024 15:03:57 +0100 Message-ID: <2024022557-CVE-2021-46905-6507@gregkh> X-Mailer: git-send-email 2.44.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=2708; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=PB6VvnbqDXDnZQo257MwpXnzWOu1DnSTVGFan5CUbl8=; b=owGbwMvMwCRo6H6F97bub03G02pJDKm3Pc76/Uj5luGwdvfqq4cZ1gjtiZZIb62N+6PCvu3r6 1ivh1e2dsSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEohYyLGj478ZQajgxxuz6 nX6Tr+8u/tq0aC3DgrUsFnnzl3/UfbcsqT9qSumztt8newE= 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: net: hso: fix NULL-deref on disconnect regression Commit 8a12f8836145 ("net: hso: fix null-ptr-deref during tty device unregistration") fixed the racy minor allocation reported by syzbot, but introduced an unconditional NULL-pointer dereference on every disconnect instead. Specifically, the serial device table must no longer be accessed after the minor has been released by hso_serial_tty_unregister(). The Linux kernel CVE team has assigned CVE-2021-46905 to this issue. Affected and fixed versions =========================== Issue introduced in 4.19.187 with commit 92028d7a31e5 and fixed in 4.19.189 with commit 5c17cfe155d2 Issue introduced in 5.4.112 with commit 4a2933c88399 and fixed in 5.4.115 with commit d7fad2ce15bd Issue introduced in 5.10.30 with commit dc195928d7e4 and fixed in 5.10.33 with commit 90642ee9eb58 Issue introduced in 5.11.14 with commit 388d05f70f1e and fixed in 5.11.17 with commit 0f000005da31 Issue introduced in 5.12 with commit 8a12f8836145 and fixed in 5.12.1 with commit 41c44e1f3112 Issue introduced in 5.12 with commit 8a12f8836145 and fixed in 5.13 with commit 2ad5692db728 Please see https://www.kernel.org or 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-2021-46905 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/net/usb/hso.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/5c17cfe155d21954b4c7e2a78fa771cebcd86725 https://git.kernel.org/stable/c/d7fad2ce15bdbbd0fec3ebe999fd7cab2267f53e https://git.kernel.org/stable/c/90642ee9eb581a13569b1c0bd57e85d962215273 https://git.kernel.org/stable/c/0f000005da31f6947f843ce6b3e3a960540c6e00 https://git.kernel.org/stable/c/41c44e1f3112d7265dae522c026399b2a42d19ef https://git.kernel.org/stable/c/2ad5692db72874f02b9ad551d26345437ea4f7f3