# CVE-2022-48871: tty: serial: qcom-geni-serial: fix slab-out-of-bounds on RX FIFO buffer

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

- **Severity:** HIGH 8.8
- **CVSS:** 8.8 (v3.1, CNA) `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Adjacent network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; 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.46% (percentile 32, 2026-11-26)
- **CWE:** CWE-125
- **Published:** 2024-08-21T06:10:01.859Z
- **Modified:** 2026-08-05T08:52:41.934Z

## Who should check

- Anyone running Linux \>= f9d690b6ece7ec9a6ff6b588df95a010ab2d66f9, \< 894681682dbefdad917b88f86cde1069140a047a; \>= f9d690b6ece7ec9a6ff6b588df95a010ab2d66f9, \< cb53a3366eb28fed67850c80afa52075bb71a38a; \>= f9d690b6ece7ec9a6ff6b588df95a010ab2d66f9, \< fd524ca7fe45b8a06dca2dd546d62684a9768f95; \>= f9d690b6ece7ec9a6ff6b588df95a010ab2d66f9, \< b8caf69a6946e18ffebad49847e258f5b6d52ac2
- Anyone running Linux 5.7

## Description

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

tty: serial: qcom-geni-serial: fix slab-out-of-bounds on RX FIFO buffer

Driver's probe allocates memory for RX FIFO (port-\>rx\_fifo) based on
default RX FIFO depth, e.g. 16.  Later during serial startup the
qcom\_geni\_serial\_port\_setup() updates the RX FIFO depth
(port-\>rx\_fifo\_depth) to match real device capabilities, e.g. to 32.

The RX UART handle code will read "port-\>rx\_fifo\_depth" number of words
into "port-\>rx\_fifo" buffer, thus exceeding the bounds.  This can be
observed in certain configurations with Qualcomm Bluetooth HCI UART
device and KASAN:

  Bluetooth: hci0: QCA Product ID   :0x00000010
  Bluetooth: hci0: QCA SOC Version  :0x400a0200
  Bluetooth: hci0: QCA ROM Version  :0x00000200
  Bluetooth: hci0: QCA Patch Version:0x00000d2b
  Bluetooth: hci0: QCA controller version 0x02000200
  Bluetooth: hci0: QCA Downloading qca/htbtfw20.tlv
  bluetooth hci0: Direct firmware load for qca/htbtfw20.tlv failed with error -2
  Bluetooth: hci0: QCA Failed to request file: qca/htbtfw20.tlv (-2)
  Bluetooth: hci0: QCA Failed to download patch (-2)
  ==================================================================
  BUG: KASAN: slab-out-of-bounds in handle\_rx\_uart+0xa8/0x18c
  Write of size 4 at addr ffff279347d578c0 by task swapper/0/0

  CPU: 0 PID: 0 Comm: swapper/0 Not tainted 6.1.0-rt5-00350-gb2450b7e00be-dirty \#26
  Hardware name: Qualcomm Technologies, Inc. Robotics RB5 (DT)
  Call trace:
   dump\_backtrace.part.0+0xe0/0xf0
   show\_stack+0x18/0x40
   dump\_stack\_lvl+0x8c/0xb8
   print\_report+0x188/0x488
   kasan\_report+0xb4/0x100
   \_\_asan\_store4+0x80/0xa4
   handle\_rx\_uart+0xa8/0x18c
   qcom\_geni\_serial\_handle\_rx+0x84/0x9c
   qcom\_geni\_serial\_isr+0x24c/0x760
   \_\_handle\_irq\_event\_percpu+0x108/0x500
   handle\_irq\_event+0x6c/0x110
   handle\_fasteoi\_irq+0x138/0x2cc
   generic\_handle\_domain\_irq+0x48/0x64

If the RX FIFO depth changes after probe, be sure to resize the buffer.

## Affected and fixed versions

- Linux: \>= f9d690b6ece7ec9a6ff6b588df95a010ab2d66f9, \< 894681682dbefdad917b88f86cde1069140a047a; \>= f9d690b6ece7ec9a6ff6b588df95a010ab2d66f9, \< cb53a3366eb28fed67850c80afa52075bb71a38a; \>= f9d690b6ece7ec9a6ff6b588df95a010ab2d66f9, \< fd524ca7fe45b8a06dca2dd546d62684a9768f95; \>= f9d690b6ece7ec9a6ff6b588df95a010ab2d66f9, \< b8caf69a6946e18ffebad49847e258f5b6d52ac2 (cvelist)
- Linux: 5.7 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2022-48871.md
Affected: Linux >= f9d690b6ece7ec9a6ff6b588df95a010ab2d66f9, < 894681682dbefdad917b88f86cde1069140a047a; >= f9d690b6ece7ec9a6ff6b588df95a010ab2d66f9, < cb53a3366eb28fed67850c80afa52075bb71a38a; >= f9d690b6ece7ec9a6ff6b588df95a010ab2d66f9, < fd524ca7fe45b8a06dca2dd546d62684a9768f95; >= f9d690b6ece7ec9a6ff6b58…
Fixed in: Linux 894681682dbefdad917b88f86cde1069140a047a

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-48871 being exploited?

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

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

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

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

Linux \>= f9d690b6ece7ec9a6ff6b588df95a010ab2d66f9, \< 894681682dbefdad917b88f86cde1069140a047a; \>= f9d690b6ece7ec9a6ff6b588df95a010ab2d66f9, \< cb53a3366eb28fed67850c80afa52075bb71a38a; \>= f9d690b6ece7ec9a6ff6b588df95a010ab2d66f9, \< fd524ca7fe45b8a06dca2dd546d62684a9768f95; \>= f9d690b6ece7ec9a6ff6b588df95a010ab2d66f9, \< b8caf69a6946e18ffebad49847e258f5b6d52ac2; Linux 5.7.

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

Yes. Fixed in Linux 894681682dbefdad917b88f86cde1069140a047a. No fix listed yet: follow the vendor advisory.

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

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/894681682dbefdad917b88f86cde1069140a047a>
- patch: <https://git.kernel.org/stable/c/cb53a3366eb28fed67850c80afa52075bb71a38a>
- patch: <https://git.kernel.org/stable/c/fd524ca7fe45b8a06dca2dd546d62684a9768f95>
- patch: <https://git.kernel.org/stable/c/b8caf69a6946e18ffebad49847e258f5b6d52ac2>

## 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-48871>

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