# CVE-2024-42286: scsi: qla2xxx: validate nvme\_local\_port correctly

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

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; 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:** Remote, no login needed
- **EPSS:** 1.07% (percentile 64, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2024-08-17T09:08:52.036Z
- **Modified:** 2026-08-05T11:36:22.360Z

## Who should check

- Anyone running Linux \>= 8777e4314d397c4e3615dc02fe8537e571e3922f, \< 549aac9655320c9b245a24271b204668c5d40430; \>= 8777e4314d397c4e3615dc02fe8537e571e3922f, \< e1f010844443c389bc552884ac5cfa47de34d54c; \>= 8777e4314d397c4e3615dc02fe8537e571e3922f, \< a3ab508a4853a9f5ae25a7816a4889f09938f63c; \>= 8777e4314d397c4e3615dc02fe8537e571e3922f, \< cde43031df533751b4ead37d173922feee2f550f; \>= 8777e4314d397c4e3615dc02fe8537e571e3922f, \< 7cec2c3bfe84539c415f5e16f989228eba1d2f1e; \>= 8777e4314d397c4e3615dc02fe8537e571e3922f, \< f6be298cc1042f24d521197af29c7c4eb95af4d5; \>= 8777e4314d397c4e3615dc02fe8537e571e3922f, \< 3eac973eb5cb2b874b3918f924798afc5affd46b; \>= 8777e4314d397c4e3615dc02fe8537e571e3922f, \< eb1d4ce2609584eeb7694866f34d4b213caa3af9
- Anyone running Linux 4.19

## Description

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

scsi: qla2xxx: validate nvme\_local\_port correctly

The driver load failed with error message,

qla2xxx \[0000:04:00.0\]-ffff:0: register\_localport failed: ret=ffffffef

and with a kernel crash,

	BUG: unable to handle kernel NULL pointer dereference at 0000000000000070
	Workqueue: events\_unbound qla\_register\_fcport\_fn \[qla2xxx\]
	RIP: 0010:nvme\_fc\_register\_remoteport+0x16/0x430 \[nvme\_fc\]
	RSP: 0018:ffffaaa040eb3d98 EFLAGS: 00010282
	RAX: 0000000000000000 RBX: ffff9dfb46b78c00 RCX: 0000000000000000
	RDX: ffff9dfb46b78da8 RSI: ffffaaa040eb3e08 RDI: 0000000000000000
	RBP: ffff9dfb612a0a58 R08: ffffffffaf1d6270 R09: 3a34303a30303030
	R10: 34303a303030305b R11: 2078787832616c71 R12: ffff9dfb46b78dd4
	R13: ffff9dfb46b78c24 R14: ffff9dfb41525300 R15: ffff9dfb46b78da8
	FS:  0000000000000000(0000) GS:ffff9dfc67c00000(0000) knlGS:0000000000000000
	CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
	CR2: 0000000000000070 CR3: 000000018da10004 CR4: 00000000000206f0
	Call Trace:
	qla\_nvme\_register\_remote+0xeb/0x1f0 \[qla2xxx\]
	? qla2x00\_dfs\_create\_rport+0x231/0x270 \[qla2xxx\]
	qla2x00\_update\_fcport+0x2a1/0x3c0 \[qla2xxx\]
	qla\_register\_fcport\_fn+0x54/0xc0 \[qla2xxx\]

Exit the qla\_nvme\_register\_remote() function when qla\_nvme\_register\_hba()
fails and correctly validate nvme\_local\_port.

## Affected and fixed versions

- Linux: \>= 8777e4314d397c4e3615dc02fe8537e571e3922f, \< 549aac9655320c9b245a24271b204668c5d40430; \>= 8777e4314d397c4e3615dc02fe8537e571e3922f, \< e1f010844443c389bc552884ac5cfa47de34d54c; \>= 8777e4314d397c4e3615dc02fe8537e571e3922f, \< a3ab508a4853a9f5ae25a7816a4889f09938f63c; \>= 8777e4314d397c4e3615dc02fe8537e571e3922f, \< cde43031df533751b4ead37d173922feee2f550f; \>= 8777e4314d397c4e3615dc02fe8537e571e3922f, \< 7cec2c3bfe84539c415f5e16f989228eba1d2f1e; \>= 8777e4314d397c4e3615dc02fe8537e571e3922f, \< f6be298cc1042f24d521197af29c7c4eb95af4d5; \>= 8777e4314d397c4e3615dc02fe8537e571e3922f, \< 3eac973eb5cb2b874b3918f924798afc5affd46b; \>= 8777e4314d397c4e3615dc02fe8537e571e3922f, \< eb1d4ce2609584eeb7694866f34d4b213caa3af9 (cvelist)
- Linux: 4.19 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2024-42286.md
Affected: Linux >= 8777e4314d397c4e3615dc02fe8537e571e3922f, < 549aac9655320c9b245a24271b204668c5d40430; >= 8777e4314d397c4e3615dc02fe8537e571e3922f, < e1f010844443c389bc552884ac5cfa47de34d54c; >= 8777e4314d397c4e3615dc02fe8537e571e3922f, < a3ab508a4853a9f5ae25a7816a4889f09938f63c; >= 8777e4314d397c4e3615dc0…
Fixed in: Linux 549aac9655320c9b245a24271b204668c5d40430, Linux 7cec2c3bfe84539c415f5e16f989228eba1d2f1e, Linux 3eac973eb5cb2b874b3918f924798afc5affd46b

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-2024-42286 being exploited?

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

### How serious is CVE-2024-42286?

High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2024-42286?

Linux \>= 8777e4314d397c4e3615dc02fe8537e571e3922f, \< 549aac9655320c9b245a24271b204668c5d40430; \>= 8777e4314d397c4e3615dc02fe8537e571e3922f, \< e1f010844443c389bc552884ac5cfa47de34d54c; \>= 8777e4314d397c4e3615dc02fe8537e571e3922f, \< a3ab508a4853a9f5ae25a7816a4889f09938f63c; \>= 8777e4314d397c4e3615dc02fe8537e571e3922f, \< cde43031df533751b4ead37d173922feee2f550f; \>= 8777e4314d397c4e3615dc02fe8537e571e3922f, \< 7cec2c3bfe84539c415f5e16f989228eba1d2f1e; \>= 8777e4314d397c4e3615dc02fe8537e571e3922f, \< f6be298cc1042f24d521197af29c7c4eb95af4d5; \>= 8777e4314d397c4e3615dc02fe8537e571e3922f, \< 3eac973eb5cb2b874b3918f924798afc5affd46b; \>= 8777e4314d397c4e3615dc02fe8537e571e3922f, \< eb1d4ce2609584eeb7694866f34d4b213caa3af9; Linux 4.19.

### Is there a fix for CVE-2024-42286?

Yes. Fixed in Linux 549aac9655320c9b245a24271b204668c5d40430, Linux 7cec2c3bfe84539c415f5e16f989228eba1d2f1e, Linux 3eac973eb5cb2b874b3918f924798afc5affd46b. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2024-42286?

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/549aac9655320c9b245a24271b204668c5d40430>
- patch: <https://git.kernel.org/stable/c/e1f010844443c389bc552884ac5cfa47de34d54c>
- patch: <https://git.kernel.org/stable/c/a3ab508a4853a9f5ae25a7816a4889f09938f63c>
- patch: <https://git.kernel.org/stable/c/cde43031df533751b4ead37d173922feee2f550f>
- patch: <https://git.kernel.org/stable/c/7cec2c3bfe84539c415f5e16f989228eba1d2f1e>
- patch: <https://git.kernel.org/stable/c/f6be298cc1042f24d521197af29c7c4eb95af4d5>
- patch: <https://git.kernel.org/stable/c/3eac973eb5cb2b874b3918f924798afc5affd46b>
- patch: <https://git.kernel.org/stable/c/eb1d4ce2609584eeb7694866f34d4b213caa3af9>
- other: <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>
- other: <https://lists.debian.org/debian-lts-announce/2024/10/msg00003.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-2024-42286>

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