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 B3A464E8E0C for ; Wed, 16 Sep 2026 10:40:52 +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=1789555267; cv=none; b=Aet01lZAiqRFFeYNmikm2s8dGKWtngPiNGFREsUthkrRuaJH1zuNmmhUi9++if8PWFLKdjmdcjN6QmKNnt9r04DBstW5XA5ygw0eBD9nj70YIUrZuPYIjsk1hlA5icwGU6/78iNwgzJJKbkBGrsdYGnkTE8s3+TEJdkgp6buxJ8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789555267; c=relaxed/simple; bh=gPVnspGuwS4N3iEmvBOLhYcEve80U6rg2WG73IbKD2E=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=sDplEQZM6WE6ZyF5+DTMza60x8+zuU0QW2xmwYXIKhZjyQRCHiAQ1xTLp1Wdx6supmuH509Tv/78FSkwrliX5atF0G7RpdXSOXU0P9D8OQoLDX3eLr/2PQARaZ9+Q9NA6KKm6fZzELJkBwiaohAhDFN8u+b/0ZqAx2u5uoTQK4Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=aa3GQJWD; 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="aa3GQJWD" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2E8311F00893; Wed, 16 Sep 2026 10:40:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789555250; bh=6qSRs+gBKzziX/jrMQJd/G0xGu3QgeJxkYJZVhpeDqo=; h=From:To:Cc:Subject:Date:Reply-To; b=aa3GQJWDEVajuoitLePcq5WRdZARTeKUOzGqew0iCGVGOuQsqtDRMB364cOdgzDEg /7Ys9TZqJf3+q57b8fhtVUIpaDvZ3HSpBLu3KlQP5Sxar9D64ZvT0u3OMbUh47PyNY 1j6JrYE47G6ZpPULjmnTOJR9YDSOBOH7woB2rpk0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-89955: s390/vfio-ap: Fix NULL deref in status_show() during queue probe Date: Wed, 16 Sep 2026 11:31:25 +0100 Message-ID: <2026091650-CVE-2026-89955-3623@gregkh> X-Mailer: git-send-email 2.55.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=3343; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=pCZpqhTwE/wFgRs//sUQPpq91HMR56YagRirapGzxmc=; b=owGbwMvMwCRo6H6F97bub03G02pJDFmr8udJ3Cgvi9pyYOkOrZ2XHdX72JrzJzXNtNG9sfyxe bPR2VtTOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAi2v8Z5vtf+RXBIPtX4f95 rh79Aqt9wq0CHxkWbNz1e58p1681/99W7RU01TQRlS87AQA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: s390/vfio-ap: Fix NULL deref in status_show() during queue probe When vfio_ap_mdev_probe_queue() creates the sysfs attribute group, the queue's driver data has not yet been set. A concurrent read of the 'status' attribute can therefore call dev_get_drvdata() and get NULL, which is then passed directly to vfio_ap_mdev_for_queue() where q->apqn is unconditionally dereferenced, causing a NULL pointer dereference. Fix this by acquiring the update locks before calling sysfs_create_group(). The status_show() function acquires guests_lock before reading the driver data, so any concurrent read will block until after dev_set_drvdata() has been called and the update locks are released. As a bonus, the APQN no longer needs to be read from the queue struct after allocation — it can be read directly from apdev before allocation and stored in a local variable, which is then assigned to q->apqn once the allocation succeeds. The Linux kernel CVE team has assigned CVE-2026-89955 to this issue. Affected and fixed versions =========================== Issue introduced in 6.0 with commit 260f3ea141382386e97611e7c2029bc013088ab1 and fixed in 6.6.157 with commit 31fa0a8a3c337ed2d200166d6926ab23c14f8b2e Issue introduced in 6.0 with commit 260f3ea141382386e97611e7c2029bc013088ab1 and fixed in 6.12.110 with commit e102ce0f4af99dff769a4b1b4daa4cc6bd5ad2d9 Issue introduced in 6.0 with commit 260f3ea141382386e97611e7c2029bc013088ab1 and fixed in 6.18.51 with commit 69632952aca04caa71e49953b6949fc04e788e67 Issue introduced in 6.0 with commit 260f3ea141382386e97611e7c2029bc013088ab1 and fixed in 7.2.5 with commit 7db2511fc601ca3a6e3fb1bdce02261c3c3167c3 Issue introduced in 6.0 with commit 260f3ea141382386e97611e7c2029bc013088ab1 and fixed in 7.3-rc1 with commit dd6f4ef6f8a37412909ad787c837332fb070159c 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-89955 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: drivers/s390/crypto/vfio_ap_ops.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/31fa0a8a3c337ed2d200166d6926ab23c14f8b2e https://git.kernel.org/stable/c/e102ce0f4af99dff769a4b1b4daa4cc6bd5ad2d9 https://git.kernel.org/stable/c/69632952aca04caa71e49953b6949fc04e788e67 https://git.kernel.org/stable/c/7db2511fc601ca3a6e3fb1bdce02261c3c3167c3 https://git.kernel.org/stable/c/dd6f4ef6f8a37412909ad787c837332fb070159c