VDB

CVE-2026-46118

CVE-2026-46118 PUBLISHED

pseries/papr-hvpipe: Fix null ptr deref in papr_hvpipe_dev_create_handle()

Reported by linux · Published May 28, 2026

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.

EPSS 0.12% · 1.9th percentile

Risk scores

EPSS Score
0.12%
1.9th percentile

Affected products

VendorProductVersions
LinuxLinux09c15bbbed533903e600660ea09098b3b0524f48, 6d3789d347a7af5c4b0b2da3af47b8d9da607ab2, 6d3789d347a7af5c4b0b2da3af47b8d9da607ab2
LinuxLinux6.19, 0, 6.18.33
LinuxLinux51a321dec76f7e39403a0574897a4409a8a700c4, 6.18.33, 7.0.7
linuxlinux_kernel6.19, 6.19, 6.18.32

Timeline

  • May 27, 2026 CVE Published
  • May 28, 2026 EPSS Score (14 in total, the first dated here)
  • Jun 1, 2026 Security Advisory (131 in total, the first dated here)
  • Jun 4, 2026 Coalition ESS Score
  • Aug 10, 2026 CVE Updated
  • Aug 11, 2026 Distribution Patch (128 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-46118
vulnetix vdb fixes CVE-2026-46118

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-46118/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›