Menu

Star on GitHub · 3.2k

CVE-2025-40148

In the Linux kernel, the following vulnerability has been resolved: drm/amd/display: Add NULL pointer checks in dc_stream cursor attribute functions The function dc_stream_set_cursor_attributes()…

Published Nov 12, 2025EPSS 0.24%

Overview

CVE-2025-40148 is a known-severity vulnerability. It was published on November 12, 2025.

Technical description

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

drm/amd/display: Add NULL pointer checks in dc_stream cursor attribute functions

The function dc_stream_set_cursor_attributes() currently dereferences

the `stream` pointer and nested members `stream->ctx->dc->current_state`

without checking for NULL.

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.

Fixes below:

drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_stream.c:336 dc_stream_program_cursor_attributes()

error: we previously assumed 'stream' could be null (see line 334)

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

Remediation

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Frequently asked questions

What is CVE-2025-40148?

CVE-2025-40148 is a known-severity vulnerability. It was published on November 12, 2025.

How severe is CVE-2025-40148?

CVSS score information is not yet available for this vulnerability. Check back as the CVE record is updated by NVD analysts.

How do I fix or remediate CVE-2025-40148?

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2025-40148?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2025-40148 is actually reachable in your own applications and APIs, then verifies each finding before reporting it. That tells you if the weakness is a real, exploitable risk in your environment or a false positive you can safely deprioritize.