CVE-2022-49474 json
Bluetooth: fix dangling sco_conn and use-after-free in sco_sock_timeout
published 2025-02-26 20 mo ago modified 2026-08-05 3 mo ago also EUVD-2022-54755
- cvss
- 7.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 20%
- public exploits
- 0
- none known
Summary
In the Linux kernel, the following vulnerability has been resolved:
Bluetooth: fix dangling sco_conn and use-after-free in sco_sock_timeout
Connecting the same socket twice consecutively in sco_sock_connect() could lead to a race condition where two sco_conn objects are created but only one is associated with the socket. If the socket is closed before the SCO connection is established, the timer associated with the dangling sco_conn object won't be canceled. As the sock object is being freed, the use-after-free problem happens when the timer callback function sco_sock_timeout() accesses the socket. Here's the call trace:
dump_stack+0x107/0x163 ? refcount_inc+0x1c/ print_address_description.constprop.0+0x1c/0x47e ? refcount_inc+0x1c/0x7b kasan_report+0x13a/0x173 ? refcount_inc+0x1c/0x7b check_memory_region+0x132/0x139 refcount_inc+0x1c/0x7b sco_sock_timeout+0xb2/0x1ba process_one_work+0x739/0xbd1 ? cancel_delayed_work+0x13f/0x13f ? __raw_spin_lock_init+0xf0/0xf0 ? to_kthread+0x59/0x85 worker_thread+0x593/0x70e kthread+0x346/0x35a ? drain_workqueue+0x31a/0x31a ? kthread_bind+0x4b/0x4b ret_from_fork+0x1f/0x30
Patch / fix
- Linux Linux 4.5, 4.9.318, 4.14.283, 4.19.247, 5.4.198, 5.10.121, 5.14, 5.15, 5.15.46, 5.17.14, 5.18.3, 5.19
- linux Debian 14, Debian 13, Debian 12 5.18.5-1
debian advisories DEBIAN-CVE-2022-49474
- linux Ubuntu 18.04 LTS 4.15.0-192.203
- linux Ubuntu 20.04 LTS 5.4.0-126.142
- linux Ubuntu 22.04 LTS 5.15.0-47.51
- linux-aws Ubuntu 18.04 LTS 4.15.0-1140.151
- linux-aws Ubuntu 20.04 LTS 5.4.0-1085.92
- linux-aws Ubuntu 22.04 LTS 5.15.0-1019.23
- linux-gcp Ubuntu 20.04 LTS 5.4.0-1089.97
- linux-gcp Ubuntu 22.04 LTS 5.15.0-1017.23
ubuntu advisories UBUNTU-CVE-2022-49474
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- kernel-64kb SLES 15 SP3-LTSS, SLE High Performance Computing 15 SP3-LTSS, Enterprise Storage 7.1 5.3.18-150300.59.201.1
- kernel-syms SLES for SAP 15 SP3, SLES 15 SP3-LTSS, SLE High Performance Computing 15 SP3-LTSS +1 more 5.3.18-150300.59.201.1
- kernel-source SLES for SAP 15 SP3, SLES 15 SP3-LTSS, SLE High Performance Computing 15 SP3-LTSS +1 more 5.3.18-150300.59.201.1
- kernel-default SLES for SAP 15 SP3, SLES 15 SP3-LTSS, SLE Micro 5.2 +5 more 5.3.18-150300.59.201.1
- kernel-preempt SLES for SAP 15 SP3, SLES 15 SP3-LTSS, SLE High Performance Computing 15 SP3-LTSS +1 more 5.3.18-150300.59.201.1
- kernel-obs-build SLES for SAP 15 SP3, SLES 15 SP3-LTSS, SLE High Performance Computing 15 SP3-LTSS +1 more 5.3.18-150300.59.201.1
- kernel-default-base SLES for SAP 15 SP3, SLES 15 SP3-LTSS, SLE Micro 5.2 +3 more 5.3.18-150300.59.201.1.150300.18.120.1
- kernel-64kb SLES 15 SP5-LTSS, SLE High Performance Computing 15 SP5-LTSS, SLE High Performance Computing 15 SP5-ESPOS 5.14.21-150500.55.100.1
suse advisories SUSE-SU-2025:01983-1SUSE-SU-2025:1263-1SUSE-SU-2025:1241-1SUSE-SU-2025:1194-1SUSE-SU-2025:1183-1SUSE-SU-2025:1176-1
- git.kernel.org/stable/c/9de3dc09e56f8deacd2bdbf4cecb71e11a312405 commit
- git.kernel.org/stable/c/7d61dbd7311ab978d8ddac1749a758de4de00374 commit
- git.kernel.org/stable/c/390d82733a953c1fabf3de9c9618091a7a9c90a6 commit
- git.kernel.org/stable/c/6f55fac0af3531cf60d11369454c41f5fc81ab3f commit
- git.kernel.org/stable/c/36c644c63bfcaee2d3a426f45e89a9cd09799318 commit
- git.kernel.org/stable/c/65d347cb39e2e6bd0c2a745ad7c928998ebb0162 commit
- git.kernel.org/stable/c/537f619dea4e3fa8ed1f8f938abffe3615794bcc commit
- git.kernel.org/stable/c/99df16007f4bbf9abfc3478cb17d10f0d7f8906e commit
- git.kernel.org/stable/c/7aa1e7d15f8a5b65f67bacb100d8fc033b21efa2 commit
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-49474 updated cvss 5.5
kernel: Bluetooth: fix dangling sco_conn and use-after-free in sco_sock_timeout
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 more Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 moreaffected: no fix planned “Out of support scope”
-
Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 moreaffected: no fix available
-
Red Hat Enterprise Linux 10 kernelnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 20 mo ago
Exploit prediction
0.28% chance of exploitation in the next 30 days, higher than 20% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| CISA ADP | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected products
- Linux Linux
Classification
- Weakness
-
- CWE-416 Use After Free
- Technology feeds
References
-
git.kernel.org
/stable/c/9de3dc09e56f8deacd2bdbf4cecb71e11a312405
patch
-
git.kernel.org
/stable/c/7d61dbd7311ab978d8ddac1749a758de4de00374
patch
-
git.kernel.org
/stable/c/390d82733a953c1fabf3de9c9618091a7a9c90a6
patch
-
git.kernel.org
/stable/c/6f55fac0af3531cf60d11369454c41f5fc81ab3f
patch
-
git.kernel.org
/stable/c/36c644c63bfcaee2d3a426f45e89a9cd09799318
patch
-
git.kernel.org
/stable/c/65d347cb39e2e6bd0c2a745ad7c928998ebb0162
patch
-
git.kernel.org
/stable/c/537f619dea4e3fa8ed1f8f938abffe3615794bcc
patch
-
git.kernel.org
/stable/c/99df16007f4bbf9abfc3478cb17d10f0d7f8906e
patch
-
git.kernel.org
/stable/c/7aa1e7d15f8a5b65f67bacb100d8fc033b21efa2
patch
Sources
- CVE List CVE-2022-49474
- NVD CVE-2022-49474
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.