{"id":"CVE-2026-31741","aliases":["CVE-2026-31741"],"related":[],"kind":"vulnerability","state":"published","title":"counter: rz-mtu3-cnt: prevent counter from being toggled multiple times","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ncounter: rz-mtu3-cnt: prevent counter from being toggled multiple times\n\nRuntime PM counter is incremented / decremented each time the sysfs\nenable file is written to.\n\nIf user writes 0 to the sysfs enable file multiple times, runtime PM\nusage count underflows, generating the following message.\n\nrz-mtu3-counter rz-mtu3-counter.0: Runtime PM usage count underflow!\n\nAt the same time, hardware registers end up being accessed with clocks\noff in rz_mtu3_terminate_counter() to disable an already disabled\nchannel.\n\nIf user writes 1 to the sysfs enable file multiple times, runtime PM\nusage count will be incremented each time, requiring the same number of\n0 writes to get it back to 0.\n\nIf user writes 0 to the sysfs enable file while PWM is in progress, PWM\nis stopped without counter being the owner of the underlying MTU3\nchannel.\n\nCheck against the cached count_is_enabled value and exit if the user\nis trying to set the same enable value.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ncounter: rz-mtu3-cnt: prevent counter from being toggled multiple times\n\nRuntime PM counter is incremented / decremented each time the sysfs\nenable file is written to.\n\nIf user writes 0 to the sysfs enable file multiple times, runtime PM\nusage count underflows, generating the following message.\n\nrz-mtu3-counter rz-mtu3-counter.0: Runtime PM usage count underflow!\n\nAt the same time, hardware registers end up being accessed with clocks\noff in rz_mtu3_terminate_counter() to disable an already disabled\nchannel.\n\nIf user writes 1 to the sysfs enable file multiple times, runtime PM\nusage count will be incremented each time, requiring the same number of\n0 writes to get it back to 0.\n\nIf user writes 0 to the sysfs enable file while PWM is in progress, PWM\nis stopped without counter being the owner of the underlying MTU3\nchannel.\n\nCheck against the cached count_is_enabled value and exit if the user\nis trying to set the same enable value.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\ncounter: rz-mtu3-cnt: evitar que el contador sea conmutado múltiples veces\n\nEl contador de PM en tiempo de ejecución se incrementa / decrementa cada vez que se escribe en el archivo de habilitación de sysfs.\n\nSi el usuario escribe 0 en el archivo de habilitación de sysfs varias veces, el recuento de uso de PM en tiempo de ejecución sufre un subdesbordamiento, generando el siguiente mensaje.\n\nrz-mtu3-counter rz-mtu3-counter.0: ¡Subdesbordamiento del recuento de uso de PM en tiempo de ejecución!\n\nAl mismo tiempo, los registros de hardware terminan siendo accedidos con los relojes apagados en rz_mtu3_terminate_counter() para deshabilitar un canal ya deshabilitado.\n\nSi el usuario escribe 1 en el archivo de habilitación de sysfs varias veces, el recuento de uso de PM en tiempo de ejecución se incrementará cada vez, requiriendo el mismo número de escrituras de 0 para devolverlo a 0.\n\nSi el usuario escribe 0 en el archivo de habilitación de sysfs mientras PWM está en curso, PWM se detiene sin que el contador sea el propietario del canal MTU3 subyacente.\n\nVerificar contra el valor almacenado en caché de count_is_enabled y salir si el usuario está intentando establecer el mismo valor de habilitación.","source":"nvd"}],"published":"2026-05-01T14:14:36.845Z","modified":"2026-11-11T21:10:00.200Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"0be8907359df4c62319f5cb2c6981ff0d9ebf35a","fixed":"885aa739a07ab45e90dfa997205acec97979ce4e","status":"affected"},{"type":"git","introduced":"0be8907359df4c62319f5cb2c6981ff0d9ebf35a","fixed":"ced8b48420eddb1251f93c22dc23fa136490b3cd","status":"affected"},{"type":"git","introduced":"0be8907359df4c62319f5cb2c6981ff0d9ebf35a","fixed":"e07237df8538b0ae98dce112e4f6db093d767f80","status":"affected"},{"type":"git","introduced":"0be8907359df4c62319f5cb2c6981ff0d9ebf35a","fixed":"f5f6f06d7e6d262026578b59ba7426eb04acce5d","status":"affected"},{"type":"git","introduced":"0be8907359df4c62319f5cb2c6981ff0d9ebf35a","fixed":"67c3f99bed6f422ba343d2b70a2eeeccdfd91bef","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.4","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.4","status":"unaffected"},{"type":"semver","introduced":"6.6.134","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.81","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.22","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.12","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.4","fixed":"6.6.134"},{"status":"affected","introduced":"6.7","fixed":"6.12.81"},{"status":"affected","introduced":"6.13","fixed":"6.18.22"},{"status":"affected","introduced":"6.19","fixed":"6.19.12"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/885aa739a07ab45e90dfa997205acec97979ce4e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ced8b48420eddb1251f93c22dc23fa136490b3cd","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e07237df8538b0ae98dce112e4f6db093d767f80","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f5f6f06d7e6d262026578b59ba7426eb04acce5d","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/67c3f99bed6f422ba343d2b70a2eeeccdfd91bef","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31741","url":"https://www.cve.org/CVERecord?id=CVE-2026-31741","licence":"CVE Terms of Use","modified":"2026-05-11T22:14:51.833Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31741","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31741","licence":"Public domain","modified":"2026-11-11T21:10:00.200Z"}],"updatedAt":"2026-11-25T22:59:20.361Z","epss":{"score":0.00127,"percentile":0.02537,"date":"2026-12-01T12:00:22.000Z"}}