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 E694833B486 for ; Wed, 17 Sep 2025 14:57:24 +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=1758121045; cv=none; b=ZxBmm7wW+kVZ8Kq1wPREmEHDxR8FkZYC84b9tns9/WA+GSMwIXVxsi2Iwg+YmL4YGoM3VOIfpqZqaXxRq7wnmtJ95ZEkREi5xQaBpBHF7gmpShppqpqbp5IUN6rYHRjtGUQjqzVnPMMNny0mRXG5xDZd7Kteowzl3RInr2RKtTI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758121045; c=relaxed/simple; bh=Pip6zoAkidU6hrGaY6nXObwn/2CF4dTihFXtdHO6Gn8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ggn8qjCVhtssu1a7s5EFbLBv/M6QFRvp4tYcf5pgUkKZWuv0CdWqdKJgL8c3uoBp/UbGPXqkU+bpHY/QSegEnz3dnu8T28uf0vfaXPot3KFomv162+aukxjOIvIfBYSIh084Q+d81RtKl9yfDvGLDwWqoN2J47EQjJBi34V6gto= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=NzqfydZm; 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="NzqfydZm" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EDC77C4CEE7; Wed, 17 Sep 2025 14:57:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1758121044; bh=Pip6zoAkidU6hrGaY6nXObwn/2CF4dTihFXtdHO6Gn8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=NzqfydZmqFLox2ipX9QvFZq3iY60jsWoE5rAEDjCyOJ/yRXJVuchozmeQ1ZH8Yzbb zeZhOqV4C0dvRpWfYBf5rFJAyS5v1lrCrW5QC6XQPpdzGbwNeJtoMUJnJhQS8z9AQI f/si35MhqdNL1WFm5yvWOZ/KkR2WIhCTlj3+rH0o= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50374: Bluetooth: hci_{ldisc,serdev}: check percpu_init_rwsem() failure Date: Wed, 17 Sep 2025 16:56:33 +0200 Message-ID: <2025091717-CVE-2022-50374-6da4@gregkh> X-Mailer: git-send-email 2.51.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=3022; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=yLNv+lkcYMMq5L7cCcUS5UK4vNJ0FHJ0R1oaoKYo8uo=; b=owGbwMvMwCRo6H6F97bub03G02pJDBmnzghqV+kvnVn71p7/TdCfwE+HJrjVxer3Vs7svfl+S uP2xuMhHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjAR9mUMCw6Z1XGkfRevevnV biNb3tZVE6YG2TLMD15jyOV7oOvlmbqzpU9KrcQKc58zAwA= 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: Bluetooth: hci_{ldisc,serdev}: check percpu_init_rwsem() failure syzbot is reporting NULL pointer dereference at hci_uart_tty_close() [1], for rcu_sync_enter() is called without rcu_sync_init() due to hci_uart_tty_open() ignoring percpu_init_rwsem() failure. While we are at it, fix that hci_uart_register_device() ignores percpu_init_rwsem() failure and hci_uart_unregister_device() does not call percpu_free_rwsem(). The Linux kernel CVE team has assigned CVE-2022-50374 to this issue. Affected and fixed versions =========================== Issue introduced in 4.15 with commit 67d2f8781b9f00d1089aafcfa3dc09fcd0f343e2 and fixed in 5.10.150 with commit d7cc0d51ffcbfd1caaa809fcf9cff05c46d0fb4d Issue introduced in 4.15 with commit 67d2f8781b9f00d1089aafcfa3dc09fcd0f343e2 and fixed in 5.15.75 with commit b8917dce2134739b39bc0a5648b18427f2cad569 Issue introduced in 4.15 with commit 67d2f8781b9f00d1089aafcfa3dc09fcd0f343e2 and fixed in 5.19.17 with commit 75b2c71ea581c7bb1303860d89366a42ad0506d2 Issue introduced in 4.15 with commit 67d2f8781b9f00d1089aafcfa3dc09fcd0f343e2 and fixed in 6.0.3 with commit 98ce10f3f345e61fc6c83bff9cd11cda252b05ac Issue introduced in 4.15 with commit 67d2f8781b9f00d1089aafcfa3dc09fcd0f343e2 and fixed in 6.1 with commit 3124d320c22f3f4388d9ac5c8f37eaad0cefd6b1 Issue introduced in 4.14.63 with commit f6ec33f6bd3723a8146768106434ef6ab3d9d990 Issue introduced in 4.14.63 with commit 4a53c4e84ace1bc75157a7281af3fe8f5b19d08c 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-50374 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/bluetooth/hci_ldisc.c drivers/bluetooth/hci_serdev.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/d7cc0d51ffcbfd1caaa809fcf9cff05c46d0fb4d https://git.kernel.org/stable/c/b8917dce2134739b39bc0a5648b18427f2cad569 https://git.kernel.org/stable/c/75b2c71ea581c7bb1303860d89366a42ad0506d2 https://git.kernel.org/stable/c/98ce10f3f345e61fc6c83bff9cd11cda252b05ac https://git.kernel.org/stable/c/3124d320c22f3f4388d9ac5c8f37eaad0cefd6b1