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-139588: media: venus: Drop session events without an instance
Date: Mon, 30 Nov 2026 14:39:57 +0100	[thread overview]
Message-ID: <2026113003-CVE-2026-139588-c8a9@gregkh> (raw)

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

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

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

media: venus: Drop session events without an instance

hfi_process_msg_packet() intentionally allows HFI_MSG_EVENT_NOTIFY
packets without a matching session instance because HFI_EVENT_SYS_ERROR
is a system event and has no session attached.

That exception currently applies to every event-notify packet. If the
firmware reports a late or otherwise invalid session event after
to_instance() fails, hfi_event_notify() can dispatch it to session-only
handlers such as event_seq_changed() or event_release_buffer_ref(), which
dereference inst.

Only system errors are valid without a session instance. Drop other
event notifications before the session event handlers can dereference a
NULL inst.

This issue was found by a static analysis checker and confirmed by
manual source review.

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


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

	Issue introduced in 4.13 with commit 09c2845e8fe4fcab942929480203f504a6e0a114 and fixed in 5.10.275 with commit 53584089b5468f47a0bb4939542aaca264c64aa2
	Issue introduced in 4.13 with commit 09c2845e8fe4fcab942929480203f504a6e0a114 and fixed in 5.15.226 with commit 3763010285cc45c1ab88e776b19a948282e3ff93
	Issue introduced in 4.13 with commit 09c2845e8fe4fcab942929480203f504a6e0a114 and fixed in 6.1.193 with commit c85402016ea0b52150b458cf64e559c5651f0384
	Issue introduced in 4.13 with commit 09c2845e8fe4fcab942929480203f504a6e0a114 and fixed in 6.6.163 with commit be62be7a40e64e16541ef168bfdac6be39de336f
	Issue introduced in 4.13 with commit 09c2845e8fe4fcab942929480203f504a6e0a114 and fixed in 6.12.119 with commit b0055a9716c2af0f702c6ee4e755d4e78977e5f1
	Issue introduced in 4.13 with commit 09c2845e8fe4fcab942929480203f504a6e0a114 and fixed in 6.18.65 with commit 565e997910409e163b0c18088180d478a3c8a8ca
	Issue introduced in 4.13 with commit 09c2845e8fe4fcab942929480203f504a6e0a114 and fixed in 7.3.6 with commit a0f9052ab62e25bc9592ad14ae6b11c01b55d3be
	Issue introduced in 4.13 with commit 09c2845e8fe4fcab942929480203f504a6e0a114 and fixed in 7.4-rc1 with commit 8921f6da06fd869b6f1aa8d02e40a4e2e2a45fe4

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-139588
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/media/platform/qcom/venus/hfi_msgs.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/53584089b5468f47a0bb4939542aaca264c64aa2
	https://git.kernel.org/stable/c/3763010285cc45c1ab88e776b19a948282e3ff93
	https://git.kernel.org/stable/c/c85402016ea0b52150b458cf64e559c5651f0384
	https://git.kernel.org/stable/c/be62be7a40e64e16541ef168bfdac6be39de336f
	https://git.kernel.org/stable/c/b0055a9716c2af0f702c6ee4e755d4e78977e5f1
	https://git.kernel.org/stable/c/565e997910409e163b0c18088180d478a3c8a8ca
	https://git.kernel.org/stable/c/a0f9052ab62e25bc9592ad14ae6b11c01b55d3be
	https://git.kernel.org/stable/c/8921f6da06fd869b6f1aa8d02e40a4e2e2a45fe4

                 reply	other threads:[~2026-11-30 14:19 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=2026113003-CVE-2026-139588-c8a9@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.