7.8

CVE-2025-21738: ata: libata-sff: Ensure that we cannot write outside the allocated buffer

Modified
AliasesSUSE-SU-2026:1060-1UBUNTU-CVE-2025-21738DEBIAN-CVE-2025-21738
Published 27-02-2025Last modified 15-10-2026

Vulnerability summary

CVE-2025-21738 is a high (CVSS 7.8) vulnerability in linux. EPSS estimates a 0.22% chance of exploitation in the next 30 days, higher than 13.1% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
7.8/10
010
High · v3.1 (CVE.org)
EPSS score
0.22%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 54 · Related 52

Timeline

  1. 27-02-2025
    PublishedVulnerability first disclosed.
  2. 15-10-2026
    Last modifiedVulnerability information updated.

Description

In the Linux kernel, the following vulnerability has been resolved: ata: libata-sff: Ensure that we cannot write outside the allocated buffer reveliofuzzing reported that a SCSI_IOCTL_SEND_COMMAND ioctl with out_len set to 0xd42, SCSI command set to ATA_16 PASS-THROUGH, ATA command set to ATA_NOP, and protocol set to ATA_PROT_PIO, can cause ata_pio_sector() to write outside the allocated buffer, overwriting random memory. While a ATA device is supposed to abort a ATA_NOP command, there does seem to be a bug either in libata-sff or QEMU, where either this status is not set, or the status is cleared before read by ata_sff_hsm_move(). Anyway, that is most likely a separate bug. Looking at __atapi_pio_bytes(), it already has a safety check to ensure that __atapi_pio_bytes() cannot write outside the allocated buffer. Add a similar check to ata_pio_sector(), such that also ata_pio_sector() cannot write outside the allocated buffer.

CVSS metrics

5 scores · 4 sources · 2 versions

EPSS trend

Probability

0.22%

Chance of exploitation in the next 30 days

Percentile

13%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.22% on 04-10-2026

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

No weakness data has been published for this record.

Affected systems

Version check

Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.

Ubuntu137 products
  • linuxAll versions (No fix recorded) | < 6.8.0-64.67
  • linux-allwinner-5.19All versions (No fix recorded)
  • linux-awsAll versions (No fix recorded) | < 6.8.0-1032.34
  • linux-aws-5.0All versions (No fix recorded)
  • linux-aws-5.11All versions (No fix recorded)
Linux2 products
  • linux≥ 5a5dbd18a7496ed403f6f54bb20c955c65482fa5, < a8f8cf87059ed1905c2a5c72f8b39a4f57b11b4c | ≥ 5a5dbd18a7496ed403f6f54bb20c955c65482fa5, < d5e6e3000309359eae2a17117aa6e3c44897bf6c | ≥ 5a5dbd18a7496ed403f6f54bb20c955c65482fa5, < 0dd5aade301a10f4b329fa7454fdcc2518741902 | ≥ 5a5dbd18a7496ed403f6f54bb20c955c65482fa5, < 0a17a9944b8d89ef03946121241870ac53ddaf45 | ≥ 5a5dbd18a7496ed403f6f54bb20c955c65482fa5, < 6e74e53b34b6dec5a50e1404e2680852ec6768d2 | 2.6.22
  • linux_kernel< 6.1.129 | ≥ 6.2, < 6.6.78 | ≥ 6.7, < 6.12.14 | ≥ 6.13, < 6.13.3
Debian1 product
  • linux< 6.1.129-1 | < 6.12.15-1
Suse1 product
  • kernel-livepatch-SLE15-SP5_Update_35&distro=SUSE Linux Enterprise Live Patching 15 SP5< 2-150500.2.1

4 vendors · 141 products

References

26 links
Show all 26 references