CVE-2026-31753
JSON

5.5medium

auxdisplay: line-display: fix NULL dereference in linedisp_release

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.11% (higher than 1% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: auxdisplay: line-display: fix NULL dereference in linedisp_release linedisp_release() currently retrieves the enclosing struct linedisp via to_linedisp(). That lookup depends on the attachment list, but the attachment may already have been removed before put_device() invokes the release callback. This can happen in linedisp_unregister(), and can also be reached from some linedisp_register() error paths. In that case, to_linedisp() returns NULL and linedisp_release() dereferences it while freeing the display resources. The struct device released here is the embedded linedisp->dev used by linedisp_register(), so retrieve the enclosing object directly with container_of() instead.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 66c93809487e62c4f59ef08625a3fbc0a7de6dd2 before 625fdac41cfc4ca9e1774a0d31d7985aec2c1d66, from 66c93809487e62c4f59ef08625a3fbc0a7de6dd2 before 7f138de156b20d9f9da6f72f90b63c01941d97d3, 6.19
Not affected: before 6.19, from 6.19.12 up to 6.19.*, from 7.0 up to *
CVE List
linux linux_kernelfrom 6.19 before 6.19.12, 7.0NVD

Classification

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: auxdisplay: line-display: fix NULL dereference in linedisp_release linedisp_release() currently retrieves the enclosing struct linedisp via to_linedisp(). That lookup depends on the attachment list, but the attachment may already have been removed before put_device() invokes the release callback. This can happen in linedisp_unregister(), and can also be reached from some linedisp_register() error paths. In that case, to_linedisp() returns NULL and linedisp_release() dereferences it while freeing the display resources. The struct device released here is the embedded linedisp->dev used by linedisp_register(), so retrieve the enclosing object directly with container_of() instead.

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: auxdisplay: line-display: corregir desreferencia NULL en linedisp_release linedisp_release() actualmente recupera la struct linedisp contenedora a través de to_linedisp(). Esa búsqueda depende de la lista de adjuntos, pero el adjunto ya podría haber sido eliminado antes de que put_device() invoque la función de devolución de llamada de liberación. Esto puede ocurrir en linedisp_unregister(), y también se puede alcanzar desde algunas rutas de error de linedisp_register(). En ese caso, to_linedisp() devuelve NULL y linedisp_release() lo desreferencia mientras libera los recursos de la pantalla. La struct device liberada aquí es el linedisp -> dev incrustado utilizado por linedisp_register(), así que recupera el objeto contenedor directamente con container_of() en su lugar.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-31753 changed 2026-05-11CVE Terms of Use
NVDCVE-2026-31753 changed 2026-11-11Public domain