# CVE-2025-39788: scsi: ufs: exynos: Fix programming of HCI\_UTRL\_NEXUS\_TYPE

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; 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.27% (percentile 12, 2026-11-26)
- **CWE:** CWE-787
- **Published:** 2025-09-11T16:56:37.173Z
- **Modified:** 2026-10-19T21:10:00.160Z

## Who should check

- Anyone running Linux \>= 55f4b1f73631a0817717fe6e98517de51b4c3527, \< 01510a9e8222f11cce064410f3c2fcf0756c0a08; \>= 55f4b1f73631a0817717fe6e98517de51b4c3527, \< 098b2c8ee208c77126839047b9e6e1925bb35baa; \>= 55f4b1f73631a0817717fe6e98517de51b4c3527, \< c1f025da8f370a015e412b55cbcc583f91de8316; \>= 55f4b1f73631a0817717fe6e98517de51b4c3527, \< 6d53b2a134da77eb7fe65c5c7c7a3c193539a78a; \>= 55f4b1f73631a0817717fe6e98517de51b4c3527, \< dc8fb963742f1a38d284946638f9358bdaa0ddee; \>= 55f4b1f73631a0817717fe6e98517de51b4c3527, \< 5b9f1ef293428ea9c0871d96fcec2a87c4445832; \>= 55f4b1f73631a0817717fe6e98517de51b4c3527, \< 01aad16c2257ab8ff33b152b972c9f2e1af47912
- Anyone running Linux 5.9

## Description

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

scsi: ufs: exynos: Fix programming of HCI\_UTRL\_NEXUS\_TYPE

On Google gs101, the number of UTP transfer request slots (nutrs) is 32,
and in this case the driver ends up programming the UTRL\_NEXUS\_TYPE
incorrectly as 0.

This is because the left hand side of the shift is 1, which is of type
int, i.e. 31 bits wide. Shifting by more than that width results in
undefined behaviour.

Fix this by switching to the BIT() macro, which applies correct type
casting as required. This ensures the correct value is written to
UTRL\_NEXUS\_TYPE (0xffffffff on gs101), and it also fixes a UBSAN shift
warning:

    UBSAN: shift-out-of-bounds in drivers/ufs/host/ufs-exynos.c:1113:21
    shift exponent 32 is too large for 32-bit type 'int'

For consistency, apply the same change to the nutmrs / UTMRL\_NEXUS\_TYPE
write.

## Affected and fixed versions

- Linux: \>= 55f4b1f73631a0817717fe6e98517de51b4c3527, \< 01510a9e8222f11cce064410f3c2fcf0756c0a08; \>= 55f4b1f73631a0817717fe6e98517de51b4c3527, \< 098b2c8ee208c77126839047b9e6e1925bb35baa; \>= 55f4b1f73631a0817717fe6e98517de51b4c3527, \< c1f025da8f370a015e412b55cbcc583f91de8316; \>= 55f4b1f73631a0817717fe6e98517de51b4c3527, \< 6d53b2a134da77eb7fe65c5c7c7a3c193539a78a; \>= 55f4b1f73631a0817717fe6e98517de51b4c3527, \< dc8fb963742f1a38d284946638f9358bdaa0ddee; \>= 55f4b1f73631a0817717fe6e98517de51b4c3527, \< 5b9f1ef293428ea9c0871d96fcec2a87c4445832; \>= 55f4b1f73631a0817717fe6e98517de51b4c3527, \< 01aad16c2257ab8ff33b152b972c9f2e1af47912 (cvelist)
- Linux: 5.9 (cvelist)

## Mitigation

- Upgrade Linux to 01aad16c2257ab8ff33b152b972c9f2e1af47912 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2025-39788.md
Affected: Linux >= 55f4b1f73631a0817717fe6e98517de51b4c3527, < 01510a9e8222f11cce064410f3c2fcf0756c0a08; >= 55f4b1f73631a0817717fe6e98517de51b4c3527, < 098b2c8ee208c77126839047b9e6e1925bb35baa; >= 55f4b1f73631a0817717fe6e98517de51b4c3527, < c1f025da8f370a015e412b55cbcc583f91de8316; >= 55f4b1f73631a0817717fe6…
Fixed in: Linux 01510a9e8222f11cce064410f3c2fcf0756c0a08, Linux 098b2c8ee208c77126839047b9e6e1925bb35baa, Linux 6d53b2a134da77eb7fe65c5c7c7a3c193539a78a, Linux 5b9f1ef293428ea9c0871d96fcec2a87c4445832, Linux 01aad16c2257ab8ff33b152b972c9f2e1af47912

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

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

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

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

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

Linux \>= 55f4b1f73631a0817717fe6e98517de51b4c3527, \< 01510a9e8222f11cce064410f3c2fcf0756c0a08; \>= 55f4b1f73631a0817717fe6e98517de51b4c3527, \< 098b2c8ee208c77126839047b9e6e1925bb35baa; \>= 55f4b1f73631a0817717fe6e98517de51b4c3527, \< c1f025da8f370a015e412b55cbcc583f91de8316; \>= 55f4b1f73631a0817717fe6e98517de51b4c3527, \< 6d53b2a134da77eb7fe65c5c7c7a3c193539a78a; \>= 55f4b1f73631a0817717fe6e98517de51b4c3527, \< dc8fb963742f1a38d284946638f9358bdaa0ddee; \>= 55f4b1f73631a0817717fe6e98517de51b4c3527, \< 5b9f1ef293428ea9c0871d96fcec2a87c4445832; \>= 55f4b1f73631a0817717fe6e98517de51b4c3527, \< 01aad16c2257ab8ff33b152b972c9f2e1af47912; Linux 5.9.

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

Yes. Fixed in Linux 01510a9e8222f11cce064410f3c2fcf0756c0a08, Linux 098b2c8ee208c77126839047b9e6e1925bb35baa, Linux 6d53b2a134da77eb7fe65c5c7c7a3c193539a78a, Linux 5b9f1ef293428ea9c0871d96fcec2a87c4445832, Linux 01aad16c2257ab8ff33b152b972c9f2e1af47912. Upgrade Linux to 01aad16c2257ab8ff33b152b972c9f2e1af47912 or later.

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

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/01510a9e8222f11cce064410f3c2fcf0756c0a08>
- patch: <https://git.kernel.org/stable/c/098b2c8ee208c77126839047b9e6e1925bb35baa>
- patch: <https://git.kernel.org/stable/c/c1f025da8f370a015e412b55cbcc583f91de8316>
- patch: <https://git.kernel.org/stable/c/6d53b2a134da77eb7fe65c5c7c7a3c193539a78a>
- patch: <https://git.kernel.org/stable/c/dc8fb963742f1a38d284946638f9358bdaa0ddee>
- patch: <https://git.kernel.org/stable/c/5b9f1ef293428ea9c0871d96fcec2a87c4445832>
- patch: <https://git.kernel.org/stable/c/01aad16c2257ab8ff33b152b972c9f2e1af47912>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-032379.html>

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

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