cve.bz

CVE-2025-38523 linux linux kernel

5.5 mediumEPSS 0.4%Fix available

Medium (5.5) in linux linux kernel. EPSS 0.4% estimated probability of exploitation activity in the next 30 days.

On this page
In the Linux kernel, the following vulnerability has been resolved: cifs: Fix the smbd_response slab to allow usercopy The handling of received data in the smbdirect client code involves using copy_to_iter() to copy data from the smbd_reponse struct's packet trailer to a folioq buffer provided by netfslib that encapsulates a chunk of pagecache. If, however, CONFIG_HARDENED_USERCOPY=y, this will result in the checks then performed in copy_to_iter() oopsing with something like the following: CIFS: Attempting to mount //172.31.9.1/test CIFS: VFS: RDMA transport established usercopy: Kernel memory exposure attempt detected from SLUB object 'smbd_response_0000000091e24ea1' (offset 81, size 63)! ------------[ cut here ]------------ kernel BUG at mm/usercopy.c:102! ... RIP: 0010:usercopy_abort+0x6c/0x80 ... Call Trace: <TASK> __check_heap_object+0xe3/0x120 __check_object_size+0x4dc/0x6d0 smbd_recv+0x77f/0xfe0 [cifs] cifs_readv_from_socket+0x276/0x8f0 [cifs] cifs_read_from_socket+0xcd/0x120 [cifs] cifs_demultiplex_thread+0x7e9/0x2d50 [cifs] kthread+0x396/0x830 ret_from_fork+0x2b8/0x3b0 ret_from_fork_asm+0x1a/0x30 The problem is that the smbd_response slab's packet field isn't marked as being permitted for usercopy. Fix this by passing parameters to kmem_slab_create() to indicate that copy_to_iter() is permitted from the packet region of the smbd_response slab objects, less the header space.

Severity

CVSS 3.1

5.5 medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
EPSS
0.4% (unchanged from 0.4% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 37th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-1188 Initialization of a Resource with an Insecure Default
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-38523 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-38523?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-38523?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-38523 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Linux6.12 and later

Fixed in

ProductRelease lineFixed in
Linux6.126.12.36
Linux6.156.15.8
Linuxlater releases6.16

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian13, 14linux6.12.37-1DEBIAN-CVE-2025-38523
Ubuntu16.04:LTSlinux-hwe-edgeno fix listedUBUNTU-CVE-2025-38523
Ubuntu18.04:LTSlinux-gcp, linux-hwe, linux-oem and 12 moreno fix listedUBUNTU-CVE-2025-38523
Ubuntu20.04:LTSlinux-gke, linux-gkeop, linux-riscv and 26 moreno fix listedUBUNTU-CVE-2025-38523
Ubuntu22.04:LTSlinux-riscv, linux-aws-6.2, linux-aws-6.5 and 30 moreno fix listedUBUNTU-CVE-2025-38523
Ubuntu24.04:LTSlinux-aws-6.14, linux-oracle-6.146.14.0-1015.15~24.04.1UBUNTU-CVE-2025-38523 USN-7833-1 USN-7833-3
Ubuntu24.04:LTSlinux-azure-6.146.14.0-1014.14~24.04.1UBUNTU-CVE-2025-38523 USN-7834-1
Ubuntu24.04:LTSlinux-azure-nvidia-6.146.14.0-1007.7UBUNTU-CVE-2025-38523 USN-7834-1
Ubuntu24.04:LTSlinux-gcp-6.146.14.0-1018.19~24.04.1UBUNTU-CVE-2025-38523 USN-7833-4
Ubuntu24.04:LTSlinux-hwe-6.146.14.0-34.34~24.04.1USN-7856-1
Ubuntu24.04:LTSlinux-intel, linux-riscv, linux-oem-6.8 and 6 moreno fix listedUBUNTU-CVE-2025-38523
Ubuntu24.04:LTSlinux-oem-6.146.14.0-1014.14UBUNTU-CVE-2025-38523 USN-7833-1
Ubuntu24.04:LTSlinux-riscv-6.146.14.0-34.34.1~24.04.1UBUNTU-CVE-2025-38523
2 more for Ubuntu in the JSON and on Ubuntu's page.
Red Hatenterprise_linux:10.0rv, perf, rtla and 88 more0:6.12.0-55.37.1.el10_0RHSA-2025:16904
AlmaLinux10kernel-doc, kernel-abi-stablelists6.12.0-55.37.1.el10_0ALSA-2025:16904
Rocky Linux10kernel0:6.12.0-55.37.1.el10_0RLSA-2025:16904
Alpaquita25linux-lts6.12.41-r0BELL-CVE-2025-38523
Alpaquitastreamlinux-lts6.18.35-r1BELL-CVE-2025-38523

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · Alpaquita.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This vulnerability is rated as Moderate severity because it results in a kernel panic and denial of service rather than privilege escalation or arbitrary code execution. Exploitation requires CIFS network shares to be configured over an RDMA transport (SMBDirect), meaning default mounts operating over standard TCP are not exposed. Furthermore, earlier Enterprise Linux releases do not include the affected streaming handling code and are not impacted.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10kernel-0:6.12.0-55.37.1.el10_0Fixed 2025-09-29RHSA-2025:16904
Red Hat Enterprise Linux 6kernelNot affected
Red Hat Enterprise Linux 7kernelNot affected
Red Hat Enterprise Linux 7kernel-rtNot affected
Red Hat Enterprise Linux 8kernelNot affected
Red Hat Enterprise Linux 8kernel-rtNot affected
Red Hat Enterprise Linux 9kernelNot affected
Red Hat Enterprise Linux 9kernel-rtNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-38523.

Attack patterns (CAPEC)

  • CAPEC-665 Exploitation of Thunderbolt Protection Flaws Likelihood: Low · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON