CVE-2023-54147 media: platform: mtk-mdp3: Add missing check and free for ida_alloc
A missing check in the MediaTek MDP3 driver allows a local attacker to cause a null pointer dereference and system crash.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-54147?
CVE-2023-54147 is a vulnerability in Linux, published on 24 Dec 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
In the Linux kernel, the following vulnerability has been resolved:
media: platform: mtk-mdp3: Add missing check and free for ida_alloc
Add the check for the return value of the ida_alloc in order to avoid NULL pointer dereference. Moreover, free allocated "ctx->id" if mdp_m2m_open fails later in order to avoid memory leak.
Which versions are affected by CVE-2023-54147?
How do I fix CVE-2023-54147?
Apply the vendor's patch.
Is CVE-2023-54147 being exploited?
There is no known exploitation of CVE-2023-54147 in the wild and no public exploit code.
Sources
Also known as BELL-CVE-2023-54147, DEBIAN-CVE-2023-54147, GHSA-xh2f-j4vc-q8qj, UBUNTU-CVE-2023-54147.