What’s Vulnerable › Vulnerabilities

CVE-2022-50374: Bluetooth: hci_{ldisc,serdev}: check percpu_init_rwsem() failure

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().

Affected products

How to fix

Upgrade to a fixed version: Linux kernel 4.15, 5.10.150, 5.15.75, 5.19.17. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2022-50374 or the next vulnerability affects your stack