# CVE-2025-21957: scsi: qla1280: Fix kernel oops when debug level \> 2

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.30% (percentile 15, 2026-11-28)
- **CWE:** CWE-476
- **Published:** 2025-04-01T15:46:56.733Z
- **Modified:** 2026-06-17T08:44:42.367Z

## Who should check

- Anyone running Linux \>= a0441891373fe2db582075a4639fdfcccea470c1, \< afa27b7c17a48e01546ccaad0ab017ad0496a522; \>= a0441891373fe2db582075a4639fdfcccea470c1, \< 11a8dac1177a596648a020a7f3708257a2f95fee; \>= a0441891373fe2db582075a4639fdfcccea470c1, \< c737e2a5fb7f90b96a96121da1b50a9c74ae9b8c; \>= a0441891373fe2db582075a4639fdfcccea470c1, \< 24602e2664c515a4f2950d7b52c3d5997463418c; \>= a0441891373fe2db582075a4639fdfcccea470c1, \< ea371d1cdefb0951c7127a33bcd7eb931cf44571; \>= a0441891373fe2db582075a4639fdfcccea470c1, \< af71ba921d08c241a817010f96458dc5e5e26762; \>= a0441891373fe2db582075a4639fdfcccea470c1, \< 7ac2473e727d67a38266b2b7e55c752402ab588c; \>= a0441891373fe2db582075a4639fdfcccea470c1, \< 5233e3235dec3065ccc632729675575dbe3c6b8a
- Anyone running Linux 2.6.24

## Description

In the Linux kernel, the following vulnerability has been resolved:

scsi: qla1280: Fix kernel oops when debug level \> 2

A null dereference or oops exception will eventually occur when qla1280.c
driver is compiled with DEBUG\_QLA1280 enabled and ql\_debug\_level \> 2.  I
think its clear from the code that the intention here is sg\_dma\_len(s) not
length of sg\_next(s) when printing the debug info.

## Affected and fixed versions

- Linux: \>= a0441891373fe2db582075a4639fdfcccea470c1, \< afa27b7c17a48e01546ccaad0ab017ad0496a522; \>= a0441891373fe2db582075a4639fdfcccea470c1, \< 11a8dac1177a596648a020a7f3708257a2f95fee; \>= a0441891373fe2db582075a4639fdfcccea470c1, \< c737e2a5fb7f90b96a96121da1b50a9c74ae9b8c; \>= a0441891373fe2db582075a4639fdfcccea470c1, \< 24602e2664c515a4f2950d7b52c3d5997463418c; \>= a0441891373fe2db582075a4639fdfcccea470c1, \< ea371d1cdefb0951c7127a33bcd7eb931cf44571; \>= a0441891373fe2db582075a4639fdfcccea470c1, \< af71ba921d08c241a817010f96458dc5e5e26762; \>= a0441891373fe2db582075a4639fdfcccea470c1, \< 7ac2473e727d67a38266b2b7e55c752402ab588c; \>= a0441891373fe2db582075a4639fdfcccea470c1, \< 5233e3235dec3065ccc632729675575dbe3c6b8a (cvelist)
- Linux: 2.6.24 (cvelist)

## Mitigation

- Upgrade Linux to 5233e3235dec3065ccc632729675575dbe3c6b8a or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2025-21957.md
Affected: Linux >= a0441891373fe2db582075a4639fdfcccea470c1, < afa27b7c17a48e01546ccaad0ab017ad0496a522; >= a0441891373fe2db582075a4639fdfcccea470c1, < 11a8dac1177a596648a020a7f3708257a2f95fee; >= a0441891373fe2db582075a4639fdfcccea470c1, < c737e2a5fb7f90b96a96121da1b50a9c74ae9b8c; >= a0441891373fe2db582075a…
Fixed in: Linux 11a8dac1177a596648a020a7f3708257a2f95fee, Linux 24602e2664c515a4f2950d7b52c3d5997463418c, Linux 7ac2473e727d67a38266b2b7e55c752402ab588c, Linux 5233e3235dec3065ccc632729675575dbe3c6b8a

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.
```

## FAQ

### Is CVE-2025-21957 being exploited?

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

### How serious is CVE-2025-21957?

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

### Which versions are affected by CVE-2025-21957?

Linux \>= a0441891373fe2db582075a4639fdfcccea470c1, \< afa27b7c17a48e01546ccaad0ab017ad0496a522; \>= a0441891373fe2db582075a4639fdfcccea470c1, \< 11a8dac1177a596648a020a7f3708257a2f95fee; \>= a0441891373fe2db582075a4639fdfcccea470c1, \< c737e2a5fb7f90b96a96121da1b50a9c74ae9b8c; \>= a0441891373fe2db582075a4639fdfcccea470c1, \< 24602e2664c515a4f2950d7b52c3d5997463418c; \>= a0441891373fe2db582075a4639fdfcccea470c1, \< ea371d1cdefb0951c7127a33bcd7eb931cf44571; \>= a0441891373fe2db582075a4639fdfcccea470c1, \< af71ba921d08c241a817010f96458dc5e5e26762; \>= a0441891373fe2db582075a4639fdfcccea470c1, \< 7ac2473e727d67a38266b2b7e55c752402ab588c; \>= a0441891373fe2db582075a4639fdfcccea470c1, \< 5233e3235dec3065ccc632729675575dbe3c6b8a; Linux 2.6.24.

### Is there a fix for CVE-2025-21957?

Yes. Fixed in Linux 11a8dac1177a596648a020a7f3708257a2f95fee, Linux 24602e2664c515a4f2950d7b52c3d5997463418c, Linux 7ac2473e727d67a38266b2b7e55c752402ab588c, Linux 5233e3235dec3065ccc632729675575dbe3c6b8a. Upgrade Linux to 5233e3235dec3065ccc632729675575dbe3c6b8a or later.

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

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.

## References

- patch: <https://git.kernel.org/stable/c/afa27b7c17a48e01546ccaad0ab017ad0496a522>
- patch: <https://git.kernel.org/stable/c/11a8dac1177a596648a020a7f3708257a2f95fee>
- patch: <https://git.kernel.org/stable/c/c737e2a5fb7f90b96a96121da1b50a9c74ae9b8c>
- patch: <https://git.kernel.org/stable/c/24602e2664c515a4f2950d7b52c3d5997463418c>
- patch: <https://git.kernel.org/stable/c/ea371d1cdefb0951c7127a33bcd7eb931cf44571>
- patch: <https://git.kernel.org/stable/c/af71ba921d08c241a817010f96458dc5e5e26762>
- patch: <https://git.kernel.org/stable/c/7ac2473e727d67a38266b2b7e55c752402ab588c>
- patch: <https://git.kernel.org/stable/c/5233e3235dec3065ccc632729675575dbe3c6b8a>
- other: <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-21957>

HTML: <https://flawdb.com/CVE-2025-21957> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-21957>
