Bluetooth: hci_{ldisc,serdev}: check percpu_init_rwsem() failure (Linux Linux)

CVE-2022-50374
MEDIUM 5.5

At a glance

Source
NVD
EPSS
EPSS 0.21 % · percentile 11 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Modified

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

Weaknesses (CWE)

  • CWE-908 — Use of Uninitialized Resource

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HCISA-ADP
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 67d2f8781b9f00d1089aafcfa3dc09fcd0f343e2 < d7cc0d51ffcbfd1caaa809fcf9cff05c46d0fb4d ; affected 67d2f8781b9f00d1089aafcfa3dc09fcd0f343e2 < b8917dce2134739b39bc0a5648b18427f2cad569 ; affected 67d2f8781b9f00d1089aafcfa3dc09fcd0f343e2 < 75b2c71ea581c7bb1303860d89366a42ad0506d2 ; affected 67d2f8781b9f00d1089aafcfa3dc09fcd0f343e2 < 98ce10f3f345e61fc6c83bff9cd11cda252b05ac ; affected 67d2f8781b9f00d1089aafcfa3dc09fcd0f343e2 < 3124d320c22f3f4388d9ac5c8f37eaad0cefd6b1 ; affected f6ec33f6bd3723a8146768106434ef6ab3d9d990
Linux · Linuxaffected 4.15 ; unaffected 0 < 4.15 ; unaffected 5.10.150 ≤ 5.10.* ; unaffected 5.15.75 ≤ 5.15.* ; unaffected 5.19.17 ≤ 5.19.* ; unaffected 6.0.3 ≤ 6.0.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD