# CVE-2024-41085: cxl/mem: Fix no cxl\_nvd during pmem region auto-assembling

> 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, NVD) `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.31% (percentile 16, 2026-11-28)
- **CWE:** CWE-476
- **Published:** 2024-07-29T15:48:01.267Z
- **Modified:** 2026-10-03T11:17:30.730Z

## Who should check

- Anyone running Linux \>= f17b558d6663101f876a1d9cbbad3de0c8f4ce4d, \< bc262c6d32b6c1715e64220e2cbfa64a225cd266; \>= f17b558d6663101f876a1d9cbbad3de0c8f4ce4d, \< 1d064e4fbebcf5b18dc10c1f3973487eb163b600; \>= f17b558d6663101f876a1d9cbbad3de0c8f4ce4d, \< 84ec985944ef34a34a1605b93ce401aa8737af96
- Anyone running Linux 6.2

## Description

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

cxl/mem: Fix no cxl\_nvd during pmem region auto-assembling

When CXL subsystem is auto-assembling a pmem region during cxl
endpoint port probing, always hit below calltrace.

 BUG: kernel NULL pointer dereference, address: 0000000000000078
 \#PF: supervisor read access in kernel mode
 \#PF: error\_code(0x0000) - not-present page
 RIP: 0010:cxl\_pmem\_region\_probe+0x22e/0x360 \[cxl\_pmem\]
 Call Trace:
  \<TASK\>
  ? \_\_die+0x24/0x70
  ? page\_fault\_oops+0x82/0x160
  ? do\_user\_addr\_fault+0x65/0x6b0
  ? exc\_page\_fault+0x7d/0x170
  ? asm\_exc\_page\_fault+0x26/0x30
  ? cxl\_pmem\_region\_probe+0x22e/0x360 \[cxl\_pmem\]
  ? cxl\_pmem\_region\_probe+0x1ac/0x360 \[cxl\_pmem\]
  cxl\_bus\_probe+0x1b/0x60 \[cxl\_core\]
  really\_probe+0x173/0x410
  ? \_\_pfx\_\_\_device\_attach\_driver+0x10/0x10
  \_\_driver\_probe\_device+0x80/0x170
  driver\_probe\_device+0x1e/0x90
  \_\_device\_attach\_driver+0x90/0x120
  bus\_for\_each\_drv+0x84/0xe0
  \_\_device\_attach+0xbc/0x1f0
  bus\_probe\_device+0x90/0xa0
  device\_add+0x51c/0x710
  devm\_cxl\_add\_pmem\_region+0x1b5/0x380 \[cxl\_core\]
  cxl\_bus\_probe+0x1b/0x60 \[cxl\_core\]

The cxl\_nvd of the memdev needs to be available during the pmem region
probe. Currently the cxl\_nvd is registered after the endpoint port probe.
The endpoint probe, in the case of autoassembly of regions, can cause a
pmem region probe requiring the not yet available cxl\_nvd. Adjust the
sequence so this dependency is met.

This requires adding a port parameter to cxl\_find\_nvdimm\_bridge() that
can be used to query the ancestor root port. The endpoint port is not
yet available, but will share a common ancestor with its parent, so
start the query from there instead.

## Affected and fixed versions

- Linux: \>= f17b558d6663101f876a1d9cbbad3de0c8f4ce4d, \< bc262c6d32b6c1715e64220e2cbfa64a225cd266; \>= f17b558d6663101f876a1d9cbbad3de0c8f4ce4d, \< 1d064e4fbebcf5b18dc10c1f3973487eb163b600; \>= f17b558d6663101f876a1d9cbbad3de0c8f4ce4d, \< 84ec985944ef34a34a1605b93ce401aa8737af96 (cvelist)
- Linux: 6.2 (cvelist)

## Mitigation

- Upgrade Linux to 84ec985944ef34a34a1605b93ce401aa8737af96 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2024-41085.md
Affected: Linux >= f17b558d6663101f876a1d9cbbad3de0c8f4ce4d, < bc262c6d32b6c1715e64220e2cbfa64a225cd266; >= f17b558d6663101f876a1d9cbbad3de0c8f4ce4d, < 1d064e4fbebcf5b18dc10c1f3973487eb163b600; >= f17b558d6663101f876a1d9cbbad3de0c8f4ce4d, < 84ec985944ef34a34a1605b93ce401aa8737af96; Linux 6.2
Fixed in: Linux 1d064e4fbebcf5b18dc10c1f3973487eb163b600, Linux 84ec985944ef34a34a1605b93ce401aa8737af96

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-41085 being exploited?

There is no confirmed exploitation: CVE-2024-41085 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-28).

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

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

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

Linux \>= f17b558d6663101f876a1d9cbbad3de0c8f4ce4d, \< bc262c6d32b6c1715e64220e2cbfa64a225cd266; \>= f17b558d6663101f876a1d9cbbad3de0c8f4ce4d, \< 1d064e4fbebcf5b18dc10c1f3973487eb163b600; \>= f17b558d6663101f876a1d9cbbad3de0c8f4ce4d, \< 84ec985944ef34a34a1605b93ce401aa8737af96; Linux 6.2.

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

Yes. Fixed in Linux 1d064e4fbebcf5b18dc10c1f3973487eb163b600, Linux 84ec985944ef34a34a1605b93ce401aa8737af96. Upgrade Linux to 84ec985944ef34a34a1605b93ce401aa8737af96 or later.

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

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/1d064e4fbebcf5b18dc10c1f3973487eb163b600>
- patch: <https://git.kernel.org/stable/c/84ec985944ef34a34a1605b93ce401aa8737af96>
- other: <https://git.kernel.org/stable/c/bc262c6d32b6c1715e64220e2cbfa64a225cd266>

## 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-41085>

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