All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: linux-cve-announce@vger.kernel.org
Cc: Greg Kroah-Hartman <gregkh@kernel.org>
Subject: CVE-2026-138859: soc: fsl: dpio: Fix cleanup on IRQ registration failure
Date: Mon, 30 Nov 2026 14:26:04 +0100	[thread overview]
Message-ID: <2026113027-CVE-2026-138859-e341@gregkh> (raw)

From: Greg Kroah-Hartman <gregkh@kernel.org>

Description
===========

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

soc: fsl: dpio: Fix cleanup on IRQ registration failure

IRQ registration happens after dpaa2_io_create(), but its failure path
only releases the IRQ resources and the MC portal. The I/O object stays
allocated and published in the service list and per-CPU lookup table,
while devres unmaps its portal registers after probe fails.

Call dpaa2_io_down() on IRQ registration failure to remove the object
from those lookup structures and free it. Reorder the error labels so
that a failed dpaa2_io_create() still skips this cleanup.

Remove unregister_dpio_irq_handlers() from the probe error path, since
no IRQ handler or affinity hint has been installed when registration
fails.

This issue was identified during our ongoing static-analysis research
while reviewing kernel code.

The Linux kernel CVE team has assigned CVE-2026-138859 to this issue.


Affected and fixed versions
===========================

	Issue introduced in 5.6 with commit fe8fe7723a3a824790bda681b40efd767e2251a7 and fixed in 5.10.275 with commit 7aa60cbcb05e5f2dec025713aee25b7052a9d92e
	Issue introduced in 5.6 with commit fe8fe7723a3a824790bda681b40efd767e2251a7 and fixed in 5.15.226 with commit 238578499dc0585ff948158350e715e86b9bfde0
	Issue introduced in 5.6 with commit fe8fe7723a3a824790bda681b40efd767e2251a7 and fixed in 6.1.193 with commit fc0d0436059b9beccb2b45710c4642feb86bdc5b
	Issue introduced in 5.6 with commit fe8fe7723a3a824790bda681b40efd767e2251a7 and fixed in 6.6.163 with commit 3410f2493c4be8d617f8196a0d84a4517ed333e7
	Issue introduced in 5.6 with commit fe8fe7723a3a824790bda681b40efd767e2251a7 and fixed in 6.12.117 with commit 227c101eb5fe1ed1c2df5a6812f1150997c909e1
	Issue introduced in 5.6 with commit fe8fe7723a3a824790bda681b40efd767e2251a7 and fixed in 6.18.63 with commit e3b89306967275b927d7812cd9ab5bd6bc0e189e
	Issue introduced in 5.6 with commit fe8fe7723a3a824790bda681b40efd767e2251a7 and fixed in 7.3.4 with commit 49ae55c52765cd38c08964e144bd99ced978f35f
	Issue introduced in 5.6 with commit fe8fe7723a3a824790bda681b40efd767e2251a7 and fixed in 7.4-rc1 with commit 45ecea8c55521d424513178fb612cefffb09a9f5
	Issue introduced in 5.4.33 with commit 96860db5c09fd936bfd871f70bc4448c335e8444
	Issue introduced in 5.5.18 with commit 08b43e0e5549abbacd993736b488f467e0e41fe0

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-138859
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/soc/fsl/dpio/dpio-driver.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/7aa60cbcb05e5f2dec025713aee25b7052a9d92e
	https://git.kernel.org/stable/c/238578499dc0585ff948158350e715e86b9bfde0
	https://git.kernel.org/stable/c/fc0d0436059b9beccb2b45710c4642feb86bdc5b
	https://git.kernel.org/stable/c/3410f2493c4be8d617f8196a0d84a4517ed333e7
	https://git.kernel.org/stable/c/227c101eb5fe1ed1c2df5a6812f1150997c909e1
	https://git.kernel.org/stable/c/e3b89306967275b927d7812cd9ab5bd6bc0e189e
	https://git.kernel.org/stable/c/49ae55c52765cd38c08964e144bd99ced978f35f
	https://git.kernel.org/stable/c/45ecea8c55521d424513178fb612cefffb09a9f5

                 reply	other threads:[~2026-11-30 13:42 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2026113027-CVE-2026-138859-e341@gregkh \
    --to=gregkh@linuxfoundation.org \
    --cc=cve@kernel.org \
    --cc=gregkh@kernel.org \
    --cc=linux-cve-announce@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.