Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D699D3AE6E5 for ; Thu, 28 May 2026 09:37:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779961075; cv=none; b=bsrVlrsKViEjHAkl2yZQ0BM03u2hjo1h45eBybJPB19NtXQEdwd24YkJ8nneI0JodAop11s3HE+6uKq7ynmyw/0JAiI96IEXiYQIUqzOw3NUqvtsFdz+Hcecuw+X4k8n5uwVfrudMbCVMJu04HR34Cihq6+2aDi4m4WplLYvgx0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779961075; c=relaxed/simple; bh=P7P+2MyyTPzGOJat6seWgmwj8QLJoTKEOqSXjI+Ku+M=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ZahHFg4phQ2s3wjBBw6ulBkP8JVpMdpi7Z/4LpFxWHqSMvvUXVMs/kxKR7SxFUUGItveLKvm1w6EYzf+SscVCVz8kHfvD3Sb9ffGhe8ZOJpafptbiHfPjtGLhPJFrVSgTPNXJeU6k0edZN+mvBvjhfhzQgxRmpSQ/oNbip8ewjs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=wnjql5C+; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="wnjql5C+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 268C51F000E9; Thu, 28 May 2026 09:37:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779961073; bh=N+eUUZSBGVDWIdwq8L/JZUrDvwim/urOkDwCzl99LRg=; h=From:To:Cc:Subject:Date:Reply-To; b=wnjql5C+EXgsh5gE8MF0fS8wsDm4TFTd5JTyrHQ7nZM+B++3PRZW/sFavw91LEKPb TMoojiAy/mBDAEpV1eTeqyVgPHDxcsSLoAvCMeEZ0P/G3iZQ4N/tMkHwxtTAI5P6aJ ywu0JHsMKC5Yz4c1i+EhlXNJ4OMdzWpYmljXh7u8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-46118: pseries/papr-hvpipe: Fix null ptr deref in papr_hvpipe_dev_create_handle() Date: Thu, 28 May 2026 11:36:23 +0200 Message-ID: <2026052814-CVE-2026-46118-ceea@gregkh> X-Mailer: git-send-email 2.54.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3403; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=k3VDxsYCKApjkLR9znvvpHTcCbBFtFyhWSRVLjD+nTs=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkSPH25OluS48y2ilnlHJog4GCoNe3Crveyp+9MPKQSu dNGLLS6I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACaySIZhfqxLjVV8bFj0NQYV t/PVx9KEJu2YyjDfiXGVVGfOSRVZ+4vqDG1s3mKyNz8DAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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. The Linux kernel CVE team has assigned CVE-2026-46118 to this issue. Affected and fixed versions =========================== Issue introduced in 6.18.32 with commit 09c15bbbed533903e600660ea09098b3b0524f48 and fixed in 6.18.33 with commit 735439394dde8462f9b50566727fbe333beaadaf Issue introduced in 6.19 with commit 6d3789d347a7af5c4b0b2da3af47b8d9da607ab2 and fixed in 7.0.7 with commit cf51bec1560f8bf115d1476f60335f9d90e110b0 Issue introduced in 6.19 with commit 6d3789d347a7af5c4b0b2da3af47b8d9da607ab2 and fixed in 7.1-rc3 with commit 1b9f7aafa44f5ce852c00509104d10fd9eb0f402 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-46118 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: arch/powerpc/platforms/pseries/papr-hvpipe.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/735439394dde8462f9b50566727fbe333beaadaf https://git.kernel.org/stable/c/cf51bec1560f8bf115d1476f60335f9d90e110b0 https://git.kernel.org/stable/c/1b9f7aafa44f5ce852c00509104d10fd9eb0f402