7.8high
media: vidtv: initialize local pointers upon transfer of memory ownership
- Severity
- 7.8high CVSS:3.1 by Linux
- Exploit likelihood
- 0.15% (higher than 4% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: media: vidtv: initialize local pointers upon transfer of memory ownership vidtv_channel_si_init() creates a temporary list (program, service, event) and ownership of the memory itself is transferred to the PAT/SDT/EIT tables through vidtv_psi_pat_program_assign(), vidtv_psi_sdt_service_assign(), vidtv_psi_eit_event_assign(). The problem here is that the local pointer where the memory ownership transfer was completed is not initialized to NULL. This causes the vidtv_psi_pmt_create_sec_for_each_pat_entry() function to fail, and in the flow that jumps to free_eit, the memory that was freed by vidtv_psi_*_table_destroy() can be accessed again by vidtv_psi_*_event_destroy() due to the uninitialized local pointer, so it is freed once again. Therefore, to prevent use-after-free and double-free vulnerability, local pointers must be initialized to NULL when transferring memory ownership.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 3be8037960bccd13052cfdeba8805ad785041d70 before c342e294dac4988c8ada759b2f057246e48c5108, from 3be8037960bccd13052cfdeba8805ad785041d70 before 12ab6ebb37789b84073e83e4d9b14a5e0d133323, from 3be8037960bccd13052cfdeba8805ad785041d70 before 3caa18d35f1dabe85a3dd31bc387f391ac9f9b4e, from 3be8037960bccd13052cfdeba8805ad785041d70 before fb9bd6d8d314b748e946ed6555eb4a956ee8c4d8, from 3be8037960bccd13052cfdeba8805ad785041d70 before a69c7fd603bf5ad93177394fbd9711922ee81032, from 3be8037960bccd13052cfdeba8805ad785041d70 before 30f4d4e5224a9e44e9ceb3956489462319d804ce, from 3be8037960bccd13052cfdeba8805ad785041d70 before 98aabfe2d79f74613abc2b0b1cef08f97eaf5322, 5.10 Not affected: before 5.10, from 5.10.248 up to 5.10.*, from 5.15.198 up to 5.15.*, from 6.1.160 up to 6.1.*, from 6.6.120 up to 6.6.*, from 6.12.64 up to 6.12.* | CVE List |
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: media: vidtv: initialize local pointers upon transfer of memory ownership vidtv_channel_si_init() creates a temporary list (program, service, event) and ownership of the memory itself is transferred to the PAT/SDT/EIT tables through vidtv_psi_pat_program_assign(), vidtv_psi_sdt_service_assign(), vidtv_psi_eit_event_assign(). The problem here is that the local pointer where the memory ownership transfer was completed is not initialized to NULL. This causes the vidtv_psi_pmt_create_sec_for_each_pat_entry() function to fail, and in the flow that jumps to free_eit, the memory that was freed by vidtv_psi_*_table_destroy() can be accessed again by vidtv_psi_*_event_destroy() due to the uninitialized local pointer, so it is freed once again. Therefore, to prevent use-after-free and double-free vulnerability, local pointers must be initialized to NULL when transferring memory ownership.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: media: vidtv: inicializar punteros locales tras la transferencia de la propiedad de la memoria vidtv_channel_si_init() crea una lista temporal (programa, servicio, evento) y la propiedad de la memoria misma se transfiere a las tablas PAT/SDT/EIT a través de vidtv_psi_pat_program_assign(), vidtv_psi_sdt_service_assign(), vidtv_psi_eit_event_assign(). El problema aquí es que el puntero local donde se completó la transferencia de la propiedad de la memoria no se inicializa a NULL. Esto hace que la función vidtv_psi_pmt_create_sec_for_each_pat_entry() falle, y en el flujo que salta a free_eit, la memoria que fue liberada por vidtv_psi_*_table_destroy() puede ser accedida de nuevo por vidtv_psi_*_event_destroy() debido al puntero local no inicializado, por lo que se libera una vez más. Por lo tanto, para prevenir la vulnerabilidad de uso después de liberación y doble liberación, los punteros locales deben inicializarse a NULL al transferir la propiedad de la memoria.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-68808 changed 2026-08-05 | CVE Terms of Use |
| NVD | CVE-2025-68808 changed 2026-07-30 | Public domain |