# CVE-2025-21873: scsi: ufs: core: bsg: Fix crash when arpmb command fails

> 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, NVD) `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 14, 2026-11-28)
- **Published:** 2025-03-27T14:57:04.835Z
- **Modified:** 2026-06-17T08:44:30.260Z

## Who should check

- Anyone running Linux \>= 6ff265fc5ef660499e0edc4641647e99eed3f519, \< 32fb5ec825f6f76bc28902181c65429a904a07fe; \>= 6ff265fc5ef660499e0edc4641647e99eed3f519, \< 59455f968c1004ed897ba873237657745d81ce0f; \>= 6ff265fc5ef660499e0edc4641647e99eed3f519, \< 7e3c96ff5c5f3206984ed077b2aa8c9b7c4e0327; \>= 6ff265fc5ef660499e0edc4641647e99eed3f519, \< f27a95845b01e86d67c8b014b4f41bd3327daa63
- Anyone running Linux 6.3

## Description

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

scsi: ufs: core: bsg: Fix crash when arpmb command fails

If the device doesn't support arpmb we'll crash due to copying user data in
bsg\_transport\_sg\_io\_fn().

In the case where ufs\_bsg\_exec\_advanced\_rpmb\_req() returns an error, do not
set the job's reply\_len.

Memory crash backtrace:
3,1290,531166405,-;ufshcd 0000:00:12.5: ARPMB OP failed: error code -22

4,1308,531166555,-;Call Trace:

4,1309,531166559,-; \<TASK\>

4,1310,531166565,-; ? show\_regs+0x6d/0x80

4,1311,531166575,-; ? die+0x37/0xa0

4,1312,531166583,-; ? do\_trap+0xd4/0xf0

4,1313,531166593,-; ? do\_error\_trap+0x71/0xb0

4,1314,531166601,-; ? usercopy\_abort+0x6c/0x80

4,1315,531166610,-; ? exc\_invalid\_op+0x52/0x80

4,1316,531166622,-; ? usercopy\_abort+0x6c/0x80

4,1317,531166630,-; ? asm\_exc\_invalid\_op+0x1b/0x20

4,1318,531166643,-; ? usercopy\_abort+0x6c/0x80

4,1319,531166652,-; \_\_check\_heap\_object+0xe3/0x120

4,1320,531166661,-; check\_heap\_object+0x185/0x1d0

4,1321,531166670,-; \_\_check\_object\_size.part.0+0x72/0x150

4,1322,531166679,-; \_\_check\_object\_size+0x23/0x30

4,1323,531166688,-; bsg\_transport\_sg\_io\_fn+0x314/0x3b0

## Affected and fixed versions

- Linux: \>= 6ff265fc5ef660499e0edc4641647e99eed3f519, \< 32fb5ec825f6f76bc28902181c65429a904a07fe; \>= 6ff265fc5ef660499e0edc4641647e99eed3f519, \< 59455f968c1004ed897ba873237657745d81ce0f; \>= 6ff265fc5ef660499e0edc4641647e99eed3f519, \< 7e3c96ff5c5f3206984ed077b2aa8c9b7c4e0327; \>= 6ff265fc5ef660499e0edc4641647e99eed3f519, \< f27a95845b01e86d67c8b014b4f41bd3327daa63 (cvelist)
- Linux: 6.3 (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-2025-21873. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-21873.md
Affected: Linux >= 6ff265fc5ef660499e0edc4641647e99eed3f519, < 32fb5ec825f6f76bc28902181c65429a904a07fe; >= 6ff265fc5ef660499e0edc4641647e99eed3f519, < 59455f968c1004ed897ba873237657745d81ce0f; >= 6ff265fc5ef660499e0edc4641647e99eed3f519, < 7e3c96ff5c5f3206984ed077b2aa8c9b7c4e0327; >= 6ff265fc5ef660499e0edc4…
Fixed in: Linux 32fb5ec825f6f76bc28902181c65429a904a07fe, Linux 59455f968c1004ed897ba873237657745d81ce0f, Linux 7e3c96ff5c5f3206984ed077b2aa8c9b7c4e0327

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-2025-21873 being exploited?

There is no confirmed exploitation: CVE-2025-21873 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-28).

### How serious is CVE-2025-21873?

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

### Which versions are affected by CVE-2025-21873?

Linux \>= 6ff265fc5ef660499e0edc4641647e99eed3f519, \< 32fb5ec825f6f76bc28902181c65429a904a07fe; \>= 6ff265fc5ef660499e0edc4641647e99eed3f519, \< 59455f968c1004ed897ba873237657745d81ce0f; \>= 6ff265fc5ef660499e0edc4641647e99eed3f519, \< 7e3c96ff5c5f3206984ed077b2aa8c9b7c4e0327; \>= 6ff265fc5ef660499e0edc4641647e99eed3f519, \< f27a95845b01e86d67c8b014b4f41bd3327daa63; Linux 6.3.

### Is there a fix for CVE-2025-21873?

Yes. Fixed in Linux 32fb5ec825f6f76bc28902181c65429a904a07fe, Linux 59455f968c1004ed897ba873237657745d81ce0f, Linux 7e3c96ff5c5f3206984ed077b2aa8c9b7c4e0327. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-21873?

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/32fb5ec825f6f76bc28902181c65429a904a07fe>
- patch: <https://git.kernel.org/stable/c/59455f968c1004ed897ba873237657745d81ce0f>
- patch: <https://git.kernel.org/stable/c/7e3c96ff5c5f3206984ed077b2aa8c9b7c4e0327>
- patch: <https://git.kernel.org/stable/c/f27a95845b01e86d67c8b014b4f41bd3327daa63>

## 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-2025-21873>

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