<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
  <channel>
    <title>Most recent entries from all</title>
    <link>https://vulnerability.circl.lu</link>
    <description>Contains only the most 10 recent entries.</description>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <generator>python-feedgen</generator>
    <language>en</language>
    <lastBuildDate>Tue, 29 Sep 2026 00:36:07 +0000</lastBuildDate>
    <item>
      <title>CVE-2025-40148 — drm/amd/display: Add NULL pointer checks in dc_stream cursor attribute functions</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2025-40148</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Linux&lt;/p&gt;
&lt;p&gt;In the Linux kernel, the following vulnerability has been resolved:&lt;/p&gt;
&lt;p&gt;drm/amd/display: Add NULL pointer checks in dc_stream cursor attribute functions&lt;/p&gt;
&lt;p&gt;The function dc_stream_set_cursor_attributes() currently dereferences
the `stream` pointer and nested members `stream-&amp;gt;ctx-&amp;gt;dc-&amp;gt;current_state`
without checking for NULL.&lt;/p&gt;
&lt;p&gt;All callers of these functions, such as in
`dcn30_apply_idle_power_optimizations()` and
`amdgpu_dm_plane_handle_cursor_update()`, already perform NULL checks
before calling these functions.&lt;/p&gt;
&lt;p&gt;Fixes below:
drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_stream.c:336 dc_stream_program_cursor_attributes()
error: we previously assumed &amp;#39;stream&amp;#39; could be null (see line 334)&lt;/p&gt;
&lt;p&gt;drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_stream.c
    327 bool dc_stream_program_cursor_attributes(
    328         struct dc_stream_state *stream,
    329         const struct dc_cursor_attributes *attributes)
    330 {
    331         struct dc  *dc;
    332         bool reset_idle_optimizations = false;
    333
    334         dc = stream ? stream-&amp;gt;ctx-&amp;gt;dc : NULL;
                     ^^^^^^
The old code assumed stream could be NULL.&lt;/p&gt;
&lt;p&gt;335
--&amp;gt; 336         if (dc_stream_set_cursor_attributes(stream, attributes)) {
                                                    ^^^^^^
The refactor added an unchecked dereference.&lt;/p&gt;
&lt;p&gt;drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_stream.c
   313  bool dc_stream_set_cursor_attributes(
   314          struct dc_stream_state *stream,
   315…&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Linux&lt;/p&gt;
&lt;p&gt;In the Linux kernel, the following vulnerability has been resolved:&lt;/p&gt;
&lt;p&gt;drm/amd/display: Add NULL pointer checks in dc_stream cursor attribute functions&lt;/p&gt;
&lt;p&gt;The function dc_stream_set_cursor_attributes() currently dereferences
the `stream` pointer and nested members `stream-&amp;gt;ctx-&amp;gt;dc-&amp;gt;current_state`
without checking for NULL.&lt;/p&gt;
&lt;p&gt;All callers of these functions, such as in
`dcn30_apply_idle_power_optimizations()` and
`amdgpu_dm_plane_handle_cursor_update()`, already perform NULL checks
before calling these functions.&lt;/p&gt;
&lt;p&gt;Fixes below:
drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_stream.c:336 dc_stream_program_cursor_attributes()
error: we previously assumed &amp;#39;stream&amp;#39; could be null (see line 334)&lt;/p&gt;
&lt;p&gt;drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_stream.c
    327 bool dc_stream_program_cursor_attributes(
    328         struct dc_stream_state *stream,
    329         const struct dc_cursor_attributes *attributes)
    330 {
    331         struct dc  *dc;
    332         bool reset_idle_optimizations = false;
    333
    334         dc = stream ? stream-&amp;gt;ctx-&amp;gt;dc : NULL;
                     ^^^^^^
The old code assumed stream could be NULL.&lt;/p&gt;
&lt;p&gt;335
--&amp;gt; 336         if (dc_stream_set_cursor_attributes(stream, attributes)) {
                                                    ^^^^^^
The refactor added an unchecked dereference.&lt;/p&gt;
&lt;p&gt;drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_stream.c
   313  bool dc_stream_set_cursor_attributes(
   314          struct dc_stream_state *stream,
   315…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2025-40148</guid>
    </item>
  </channel>
</rss>
