CVE-2025-39926
JSON

5.5medium

genetlink: fix genl_bind() invoking bind() after -EPERM

Severity
5.5medium CVSS:3.1 by CISA-ADP
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: genetlink: fix genl_bind() invoking bind() after -EPERM Per family bind/unbind callbacks were introduced to allow families to track multicast group consumer presence, e.g. to start or stop producing events depending on listeners. However, in genl_bind() the bind() callback was invoked even if capability checks failed and ret was set to -EPERM. This means that callbacks could run on behalf of unauthorized callers while the syscall still returned failure to user space. Fix this by only invoking bind() after "if (ret) break;" check i.e. after permission checks have succeeded.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 3de21a8990d3c2cc507e9cc4ed00f36358d5b93e before 98c9d884047a3051c203708914a874dece3cbe54, from 3de21a8990d3c2cc507e9cc4ed00f36358d5b93e before 8858c1e9405906c09589d7c336f04058ea198207, from 3de21a8990d3c2cc507e9cc4ed00f36358d5b93e before 1dbfb0363224f6da56f6655d596dc5097308d6f5, 6.9
Not affected: before 6.9, from 6.12.48 up to 6.12.*, from 6.16.8 up to 6.16.*, from 6.17 up to *
CVE List
linux linux_kernelfrom 6.9 before 6.12.48, from 6.13 before 6.16.8, 6.17NVD

All scores

CISA-ADP5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Classification

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: genetlink: fix genl_bind() invoking bind() after -EPERM Per family bind/unbind callbacks were introduced to allow families to track multicast group consumer presence, e.g. to start or stop producing events depending on listeners. However, in genl_bind() the bind() callback was invoked even if capability checks failed and ret was set to -EPERM. This means that callbacks could run on behalf of unauthorized callers while the syscall still returned failure to user space. Fix this by only invoking bind() after "if (ret) break;" check i.e. after permission checks have succeeded.

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: genetlink: corrige la invocación de bind() por genl_bind() después de -EPERM Las devoluciones de llamada de bind/unbind por familia fueron introducidas para permitir a las familias rastrear la presencia de consumidores de grupos de multidifusión, por ejemplo, para iniciar o detener la producción de eventos dependiendo de los oyentes. Sin embargo, en genl_bind() la devolución de llamada bind() fue invocada incluso si las comprobaciones de capacidad fallaron y ret se estableció en -EPERM. Esto significa que las devoluciones de llamada podrían ejecutarse en nombre de llamadores no autorizados mientras la llamada al sistema aún devolvía un fallo al espacio de usuario. Esto se corrige invocando bind() solo después de la comprobación 'if (ret) break;', es decir, después de que las comprobaciones de permisos hayan tenido éxito.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-39926 changed 2026-05-11CVE Terms of Use
NVDCVE-2025-39926 changed 2026-10-19Public domain