# CVE-2022-49908: Bluetooth: L2CAP: Fix memory leak in vhci\_write

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.28% (percentile 13, 2026-11-26)
- **CWE:** CWE-401
- **Published:** 2025-05-01T14:10:51.706Z
- **Modified:** 2026-06-17T05:19:29.210Z

## Who should check

- Anyone running Linux \>= 4d7ea8ee90e42fc75995f6fb24032d3233314528, \< aa16cac06b752e5f609c106735bd7838f444784c; \>= 4d7ea8ee90e42fc75995f6fb24032d3233314528, \< 5b4f039a2f487c5edae681d763fe1af505f84c13; \>= 4d7ea8ee90e42fc75995f6fb24032d3233314528, \< 7c9524d929648935bac2bbb4c20437df8f9c3f42
- Anyone running Linux 5.12

## Description

In the Linux kernel, the following vulnerability has been resolved:

Bluetooth: L2CAP: Fix memory leak in vhci\_write

Syzkaller reports a memory leak as follows:
====================================
BUG: memory leak
unreferenced object 0xffff88810d81ac00 (size 240):
  \[...\]
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  backtrace:
    \[\<ffffffff838733d9\>\] \_\_alloc\_skb+0x1f9/0x270 net/core/skbuff.c:418
    \[\<ffffffff833f742f\>\] alloc\_skb include/linux/skbuff.h:1257 \[inline\]
    \[\<ffffffff833f742f\>\] bt\_skb\_alloc include/net/bluetooth/bluetooth.h:469 \[inline\]
    \[\<ffffffff833f742f\>\] vhci\_get\_user drivers/bluetooth/hci\_vhci.c:391 \[inline\]
    \[\<ffffffff833f742f\>\] vhci\_write+0x5f/0x230 drivers/bluetooth/hci\_vhci.c:511
    \[\<ffffffff815e398d\>\] call\_write\_iter include/linux/fs.h:2192 \[inline\]
    \[\<ffffffff815e398d\>\] new\_sync\_write fs/read\_write.c:491 \[inline\]
    \[\<ffffffff815e398d\>\] vfs\_write+0x42d/0x540 fs/read\_write.c:578
    \[\<ffffffff815e3cdd\>\] ksys\_write+0x9d/0x160 fs/read\_write.c:631
    \[\<ffffffff845e0645\>\] do\_syscall\_x64 arch/x86/entry/common.c:50 \[inline\]
    \[\<ffffffff845e0645\>\] do\_syscall\_64+0x35/0xb0 arch/x86/entry/common.c:80
    \[\<ffffffff84600087\>\] entry\_SYSCALL\_64\_after\_hwframe+0x63/0xcd
====================================

HCI core will uses hci\_rx\_work() to process frame, which is queued to
the hdev-\>rx\_q tail in hci\_recv\_frame() by HCI driver.

Yet the problem is that, HCI core may not free the skb after handling
ACL data packets. To be more specific, when start fragment does not
contain the L2CAP length, HCI core just copies skb into conn-\>rx\_skb and
finishes frame process in l2cap\_recv\_acldata(), without freeing the skb,
which triggers the above memory leak.

This patch solves it by releasing the relative skb, after processing
the above case in l2cap\_recv\_acldata().

## Affected and fixed versions

- Linux: \>= 4d7ea8ee90e42fc75995f6fb24032d3233314528, \< aa16cac06b752e5f609c106735bd7838f444784c; \>= 4d7ea8ee90e42fc75995f6fb24032d3233314528, \< 5b4f039a2f487c5edae681d763fe1af505f84c13; \>= 4d7ea8ee90e42fc75995f6fb24032d3233314528, \< 7c9524d929648935bac2bbb4c20437df8f9c3f42 (cvelist)
- Linux: 5.12 (cvelist)

## Mitigation

- Upgrade Linux to 7c9524d929648935bac2bbb4c20437df8f9c3f42 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-49908. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-49908.md
Affected: Linux >= 4d7ea8ee90e42fc75995f6fb24032d3233314528, < aa16cac06b752e5f609c106735bd7838f444784c; >= 4d7ea8ee90e42fc75995f6fb24032d3233314528, < 5b4f039a2f487c5edae681d763fe1af505f84c13; >= 4d7ea8ee90e42fc75995f6fb24032d3233314528, < 7c9524d929648935bac2bbb4c20437df8f9c3f42; Linux 5.12
Fixed in: Linux 5b4f039a2f487c5edae681d763fe1af505f84c13, Linux 7c9524d929648935bac2bbb4c20437df8f9c3f42

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-49908 being exploited?

There is no confirmed exploitation: CVE-2022-49908 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.28% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-49908?

Medium: CVSS 5.5 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2022-49908?

Linux \>= 4d7ea8ee90e42fc75995f6fb24032d3233314528, \< aa16cac06b752e5f609c106735bd7838f444784c; \>= 4d7ea8ee90e42fc75995f6fb24032d3233314528, \< 5b4f039a2f487c5edae681d763fe1af505f84c13; \>= 4d7ea8ee90e42fc75995f6fb24032d3233314528, \< 7c9524d929648935bac2bbb4c20437df8f9c3f42; Linux 5.12.

### Is there a fix for CVE-2022-49908?

Yes. Fixed in Linux 5b4f039a2f487c5edae681d763fe1af505f84c13, Linux 7c9524d929648935bac2bbb4c20437df8f9c3f42. Upgrade Linux to 7c9524d929648935bac2bbb4c20437df8f9c3f42 or later.

### How do I check if I'm affected by CVE-2022-49908?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/aa16cac06b752e5f609c106735bd7838f444784c>
- patch: <https://git.kernel.org/stable/c/5b4f039a2f487c5edae681d763fe1af505f84c13>
- patch: <https://git.kernel.org/stable/c/7c9524d929648935bac2bbb4c20437df8f9c3f42>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-49908>

HTML: <https://flawdb.com/CVE-2022-49908> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-49908>
