SecurityContext

CVE-2025-38314: Linux Kernel - Buffer Size Miscalculation

  • Cve: CVE-2025-38314
  • Name: Linux Kernel - Buffer Size Miscalculation
  • Description: In the Linux kernel, the following vulnerability has been resolved: virtio-pci: Fix result size returned for the admin command completion The result size returned by virtio_pci_admin_dev_parts_get() is 8 bytes larger than the actual result data size. This occurs because the result_sg_size field of the command is filled with the result length from virtqueue_get_buf(), which includes both the data size and an additional 8 bytes of status. This oversized result size causes two issues: 1. The state transferred to the destination includes 8 bytes of extra data at the end. 2. The allocated buffer in the kernel may be smaller than the returned size, leading to failures when reading beyond the allocated size. The commit fixes this by subtracting the status size from the result of virtqueue_get_buf(). This fix has been tested through live migrations with virtio-net, virtio-net-transitional, and virtio-blk devices.
  • Impact: Attackers can cause kernel buffer over-read or data corruption, potentially leading to system instability or denial of service.
  • Remediation: Update to the latest Linux kernel version containing the fix.
  • Vulnerability impact: denial_of_service, data_tampering
  • Requirement type: logged_in
  • Requirements: Attacker needs kernel-level access to trigger the issue
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 5.5
  • Cvss vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
  • Epss score: 0.00147
  • Epss percentile: 0.03887
  • Assignee: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  • Published at: 2025-07-10T08:15:30Z
  • Age in days: 502
  • Modified at: 2026-07-30T06:23:06Z
  • Patch available: yes
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2025-38314
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: vulnerability type, hackerone

Cwe

IdName
NVD-CWE-noinfo—

References

UrlSourceTags
https://git.kernel.org/stable/c/920b6720bb63893b81516c0c45884a8350f9e4bfnvdPatch
https://git.kernel.org/stable/c/9ef41ebf787fcbde99ac404ae473f8467641f983nvdPatch

Products

ProductAffectedPlatform boundSourcesUrl
linux:linux_kernel>= 6.13, < 6.15.3nonvd/v1/products/linux/linux_kernel

Projects

RepositoryLink kindsIndexedUrl
torvalds/linuxcna_commit, commityes/v1/repositories/torvalds/linux

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Authentication required: yes
  • Exposed hosts: 10038339
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports