Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2025-21738

HIGH 7.8EPSS 16%

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

Mitigation

  • Upgrade Linux to 6e74e53b34b6dec5a50e1404e2680852ec6768d2 or later.

Who should check

  • Anyone running Linux >= 5a5dbd18a7496ed403f6f54bb20c955c65482fa5, < a8f8cf87059ed1905c2a5c72f8b39a4f57b11b4c; >= 5a5dbd18a7496ed403f6f54bb20c955c65482fa5, < d5e6e3000309359eae2a17117aa6e3c44897bf6c; >= 5a5dbd18a7496ed403f6f54bb20c955c65482fa5, < 0dd5aade301a10f4b329fa7454fdcc2518741902; >= 5a5dbd18a7496ed403f6f54bb20c955c65482fa5, < 0a17a9944b8d89ef03946121241870ac53ddaf45; >= 5a5dbd18a7496ed403f6f54bb20c955c65482fa5, < 6e74e53b34b6dec5a50e1404e2680852ec6768d2
  • Anyone running Linux 2.6.22

Vulnerability facts

Affected
Linux >= 5a5dbd18a7496ed403f6f54bb20c955c65482fa5, < a8f8cf87059ed1905c2a5c72f8b39a4f57b11b4c; >= 5a5dbd18a7496ed403f6f54bb20c955c65482fa5, < d5e6e3000309359eae2a17117aa6e3c44897bf6c; >= 5a5dbd18a7496ed403f6f54bb20c955c65482fa5, < 0dd5aade301a10f4b329fa7454fdcc2518741902; >= 5a5dbd18a7496ed403f6f54bb20c955c65482fa5, < 0a17a9944b8d89ef03946121241870ac53ddaf45; >= 5a5dbd18a7496ed403f6f54bb20c955c65482fa5, < 6e74e53b34b6dec5a50e1404e2680852ec6768d2; Linux 2.6.22
Fixed in
Linux 0dd5aade301a10f4b329fa7454fdcc2518741902, Linux 0a17a9944b8d89ef03946121241870ac53ddaf45, Linux 6e74e53b34b6dec5a50e1404e2680852ec6768d2
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
7.8 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 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
EPSS
0.31% chance of exploitation in 30 days (percentile 16, 2026-11-26)
Published
Modified

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.

Affected and fixed versions

Package / productAffectedFixedSource
Linux>= 5a5dbd18a7496ed403f6f54bb20c955c65482fa5, < a8f8cf87059ed1905c2a5c72f8b39a4f57b11b4c; >= 5a5dbd18a7496ed403f6f54bb20c955c65482fa5, < d5e6e3000309359eae2a17117aa6e3c44897bf6c; >= 5a5dbd18a7496ed403f6f54bb20c955c65482fa5, < 0dd5aade301a10f4b329fa7454fdcc2518741902; >= 5a5dbd18a7496ed403f6f54bb20c955c65482fa5, < 0a17a9944b8d89ef03946121241870ac53ddaf45; >= 5a5dbd18a7496ed403f6f54bb20c955c65482fa5, < 6e74e53b34b6dec5a50e1404e2680852ec6768d2—cvelist
Linux2.6.22—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

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

Details: https://flawdb.com/CVE-2025-21738.md
Affected: Linux >= 5a5dbd18a7496ed403f6f54bb20c955c65482fa5, < a8f8cf87059ed1905c2a5c72f8b39a4f57b11b4c; >= 5a5dbd18a7496ed403f6f54bb20c955c65482fa5, < d5e6e3000309359eae2a17117aa6e3c44897bf6c; >= 5a5dbd18a7496ed403f6f54bb20c955c65482fa5, < 0dd5aade301a10f4b329fa7454fdcc2518741902; >= 5a5dbd18a7496ed403f6f54…
Fixed in: Linux 0dd5aade301a10f4b329fa7454fdcc2518741902, Linux 0a17a9944b8d89ef03946121241870ac53ddaf45, Linux 6e74e53b34b6dec5a50e1404e2680852ec6768d2

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.

References

FAQ

Is CVE-2025-21738 being exploited?

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

How serious is CVE-2025-21738?

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

Which versions are affected by CVE-2025-21738?

Linux >= 5a5dbd18a7496ed403f6f54bb20c955c65482fa5, < a8f8cf87059ed1905c2a5c72f8b39a4f57b11b4c; >= 5a5dbd18a7496ed403f6f54bb20c955c65482fa5, < d5e6e3000309359eae2a17117aa6e3c44897bf6c; >= 5a5dbd18a7496ed403f6f54bb20c955c65482fa5, < 0dd5aade301a10f4b329fa7454fdcc2518741902; >= 5a5dbd18a7496ed403f6f54bb20c955c65482fa5, < 0a17a9944b8d89ef03946121241870ac53ddaf45; >= 5a5dbd18a7496ed403f6f54bb20c955c65482fa5, < 6e74e53b34b6dec5a50e1404e2680852ec6768d2; Linux 2.6.22.

Is there a fix for CVE-2025-21738?

Yes. Fixed in Linux 0dd5aade301a10f4b329fa7454fdcc2518741902, Linux 0a17a9944b8d89ef03946121241870ac53ddaf45, Linux 6e74e53b34b6dec5a50e1404e2680852ec6768d2. Upgrade Linux to 6e74e53b34b6dec5a50e1404e2680852ec6768d2 or later.

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

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.

Sponsors