CVE-2025-39788

scsi: ufs: exynos: Fix programming of HCI_UTRL_NEXUS_TYPE

No CVSS score yet EPSS 0.18%

Published 11 Sep 2025 Updated 12 May 2026 CNA: Linux

Check your servers for CVE-2025-39788

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-39788 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Exploitation

EPSS 0.18%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 7.80% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 55f4b1f73631a0817717fe6e98517de51b4c3527, before 01510a9e8222f11cce064410f3c2fcf0756c0a08
affected from 55f4b1f73631a0817717fe6e98517de51b4c3527, before 098b2c8ee208c77126839047b9e6e1925bb35baa
affected from 55f4b1f73631a0817717fe6e98517de51b4c3527, before c1f025da8f370a015e412b55cbcc583f91de8316
affected from 55f4b1f73631a0817717fe6e98517de51b4c3527, before 6d53b2a134da77eb7fe65c5c7c7a3c193539a78a
affected from 55f4b1f73631a0817717fe6e98517de51b4c3527, before dc8fb963742f1a38d284946638f9358bdaa0ddee
affected from 55f4b1f73631a0817717fe6e98517de51b4c3527, before 5b9f1ef293428ea9c0871d96fcec2a87c4445832
affected from 55f4b1f73631a0817717fe6e98517de51b4c3527, before 01aad16c2257ab8ff33b152b972c9f2e1af47912
Other versions: unaffected
Linux
affected 5.9
unaffected before 5.9
unaffected from 5.10.241 up to and including 5.10.*
unaffected from 5.15.190 up to and including 5.15.*
unaffected from 6.1.149 up to and including 6.1.*
unaffected from 6.6.103 up to and including 6.6.*
unaffected from 6.12.44 up to and including 6.12.*
unaffected from 6.16.4 up to and including 6.16.*
unaffected 6.17 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-39788 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-39788

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2025-39788
trivy image --scanners vuln IMAGE | grep CVE-2025-39788

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2025-39788 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.