# CVE-2026-46118: pseries/papr-hvpipe: Fix null ptr deref in papr\_hvpipe\_dev\_create\_handle()

> 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.16% (percentile 3, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2026-05-28T09:35:33.635Z
- **Modified:** 2026-10-15T11:17:31.930Z

## Who should check

- Anyone running Linux \>= 09c15bbbed533903e600660ea09098b3b0524f48, \< 735439394dde8462f9b50566727fbe333beaadaf; \>= 6d3789d347a7af5c4b0b2da3af47b8d9da607ab2, \< cf51bec1560f8bf115d1476f60335f9d90e110b0; \>= 6d3789d347a7af5c4b0b2da3af47b8d9da607ab2, \< 1b9f7aafa44f5ce852c00509104d10fd9eb0f402; 51a321dec76f7e39403a0574897a4409a8a700c4; \>= 6.18.32, \< 6.18.33
- Anyone running Linux 6.19

## Description

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

pseries/papr-hvpipe: Fix null ptr deref in papr\_hvpipe\_dev\_create\_handle()

commit 6d3789d347a7 ("papr-hvpipe: convert papr\_hvpipe\_dev\_create\_handle() to FD\_PREPARE()"),
changed the create handle to FD\_PREPARE(), but it caused kernel
null-ptr-deref because after call to retain\_and\_null\_ptr(src\_info),
src\_info is re-used for adding it to the global list.

Getting the following kernel panic in papr\_hvpipe\_dev\_create\_handle()
when trying to add src\_info to the list.
 Kernel attempted to write user page (0) - exploit attempt? (uid: 0)
 BUG: Kernel NULL pointer dereference on write at 0x00000000
 Faulting instruction address: 0xc0000000001b44a0
 Oops: Kernel access of bad area, sig: 11 \[\#1\]
 ...
 Call Trace:
 papr\_hvpipe\_dev\_ioctl+0x1f4/0x48c (unreliable)
 sys\_ioctl+0x528/0x1064
 system\_call\_exception+0x128/0x360
 system\_call\_vectored\_common+0x15c/0x2ec

Now, the error handling with FD\_PREPARE's file cleanup and \_\_free(kfree) auto
cleanup is getting too convoluted. This is mainly because we need to
ensure only 1 user get the srcID handle. To simplify this, we allocate
prepare the src\_info in the beginning and add it to the global list
under a spinlock after checking that no duplicates exist.

This simplify the error handling where if the FD\_ADD fails, we can
simply remove the src\_info from the list and consume any pending msg in
hvpipe to be cleared, after src\_info became visible in the global list.

## Affected and fixed versions

- Linux: \>= 09c15bbbed533903e600660ea09098b3b0524f48, \< 735439394dde8462f9b50566727fbe333beaadaf; \>= 6d3789d347a7af5c4b0b2da3af47b8d9da607ab2, \< cf51bec1560f8bf115d1476f60335f9d90e110b0; \>= 6d3789d347a7af5c4b0b2da3af47b8d9da607ab2, \< 1b9f7aafa44f5ce852c00509104d10fd9eb0f402; 51a321dec76f7e39403a0574897a4409a8a700c4; \>= 6.18.32, \< 6.18.33 (cvelist)
- Linux: 6.19 (cvelist)

## Mitigation

- Upgrade Linux to 6.18.33 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-46118.md
Affected: Linux >= 09c15bbbed533903e600660ea09098b3b0524f48, < 735439394dde8462f9b50566727fbe333beaadaf; >= 6d3789d347a7af5c4b0b2da3af47b8d9da607ab2, < cf51bec1560f8bf115d1476f60335f9d90e110b0; >= 6d3789d347a7af5c4b0b2da3af47b8d9da607ab2, < 1b9f7aafa44f5ce852c00509104d10fd9eb0f402; 51a321dec76f7e39403a057489…
Fixed in: Linux 735439394dde8462f9b50566727fbe333beaadaf, Linux 1b9f7aafa44f5ce852c00509104d10fd9eb0f402, Linux 6.18.33

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-2026-46118 being exploited?

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

### How serious is CVE-2026-46118?

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

### Which versions are affected by CVE-2026-46118?

Linux \>= 09c15bbbed533903e600660ea09098b3b0524f48, \< 735439394dde8462f9b50566727fbe333beaadaf; \>= 6d3789d347a7af5c4b0b2da3af47b8d9da607ab2, \< cf51bec1560f8bf115d1476f60335f9d90e110b0; \>= 6d3789d347a7af5c4b0b2da3af47b8d9da607ab2, \< 1b9f7aafa44f5ce852c00509104d10fd9eb0f402; 51a321dec76f7e39403a0574897a4409a8a700c4; \>= 6.18.32, \< 6.18.33; Linux 6.19.

### Is there a fix for CVE-2026-46118?

Yes. Fixed in Linux 735439394dde8462f9b50566727fbe333beaadaf, Linux 1b9f7aafa44f5ce852c00509104d10fd9eb0f402, Linux 6.18.33. Upgrade Linux to 6.18.33 or later.

### How do I check if I'm affected by CVE-2026-46118?

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/735439394dde8462f9b50566727fbe333beaadaf>
- patch: <https://git.kernel.org/stable/c/cf51bec1560f8bf115d1476f60335f9d90e110b0>
- patch: <https://git.kernel.org/stable/c/1b9f7aafa44f5ce852c00509104d10fd9eb0f402>

## 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-2026-46118>

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