{"id":"CVE-2026-31740","aliases":["CVE-2026-31740"],"related":[],"kind":"vulnerability","state":"published","title":"counter: rz-mtu3-cnt: do not use struct rz_mtu3_channel's dev member","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ncounter: rz-mtu3-cnt: do not use struct rz_mtu3_channel's dev member\n\nThe counter driver can use HW channels 1 and 2, while the PWM driver can\nuse HW channels 0, 1, 2, 3, 4, 6, 7.\n\nThe dev member is assigned both by the counter driver and the PWM driver\nfor channels 1 and 2, to their own struct device instance, overwriting\nthe previous value.\n\nThe sub-drivers race to assign their own struct device pointer to the\nsame struct rz_mtu3_channel's dev member.\n\nThe dev member of struct rz_mtu3_channel is used by the counter\nsub-driver for runtime PM.\n\nDepending on the probe order of the counter and PWM sub-drivers, the\ndev member may point to the wrong struct device instance, causing the\ncounter sub-driver to do runtime PM actions on the wrong device.\n\nTo fix this, use the parent pointer of the counter, which is assigned\nduring probe to the correct struct device, not the struct device pointer\ninside the shared struct rz_mtu3_channel.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ncounter: rz-mtu3-cnt: do not use struct rz_mtu3_channel's dev member\n\nThe counter driver can use HW channels 1 and 2, while the PWM driver can\nuse HW channels 0, 1, 2, 3, 4, 6, 7.\n\nThe dev member is assigned both by the counter driver and the PWM driver\nfor channels 1 and 2, to their own struct device instance, overwriting\nthe previous value.\n\nThe sub-drivers race to assign their own struct device pointer to the\nsame struct rz_mtu3_channel's dev member.\n\nThe dev member of struct rz_mtu3_channel is used by the counter\nsub-driver for runtime PM.\n\nDepending on the probe order of the counter and PWM sub-drivers, the\ndev member may point to the wrong struct device instance, causing the\ncounter sub-driver to do runtime PM actions on the wrong device.\n\nTo fix this, use the parent pointer of the counter, which is assigned\nduring probe to the correct struct device, not the struct device pointer\ninside the shared struct rz_mtu3_channel.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\ncontador: rz-mtu3-cnt: no usar el miembro dev de struct rz_mtu3_channel\n\nEl controlador de contador puede usar los canales HW 1 y 2, mientras que el controlador PWM puede usar los canales HW 0, 1, 2, 3, 4, 6, 7.\n\nEl miembro dev es asignado tanto por el controlador de contador como por el controlador PWM para los canales 1 y 2, a su propia instancia de struct device, sobrescribiendo el valor anterior.\n\nLos subcontroladores compiten por asignar su propio puntero a struct device al mismo miembro dev de struct rz_mtu3_channel.\n\nEl miembro dev de struct rz_mtu3_channel es usado por el subcontrolador de contador para PM en tiempo de ejecución.\n\nDependiendo del orden de sondeo de los subcontroladores de contador y PWM, el miembro dev puede apuntar a la instancia incorrecta de struct device, haciendo que el subcontrolador de contador realice acciones de PM en tiempo de ejecución en el dispositivo incorrecto.\n\nPara solucionar esto, usar el puntero padre del contador, el cual es asignado durante el sondeo a la struct device correcta, no el puntero a struct device dentro de la struct rz_mtu3_channel compartida.","source":"nvd"}],"published":"2026-05-01T14:14:36.183Z","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":"28a371be901ef44ee03726c2575d7d6795521fe0","status":"affected"},{"type":"git","introduced":"0be8907359df4c62319f5cb2c6981ff0d9ebf35a","fixed":"633dfbf0eb2766c597c1a59dd83035c82e14791d","status":"affected"},{"type":"git","introduced":"0be8907359df4c62319f5cb2c6981ff0d9ebf35a","fixed":"6562290225c197e2e193a53de2a517815288dcd1","status":"affected"},{"type":"git","introduced":"0be8907359df4c62319f5cb2c6981ff0d9ebf35a","fixed":"63be324c795262f0e316c6fe9b329d83afa1ec93","status":"affected"},{"type":"git","introduced":"0be8907359df4c62319f5cb2c6981ff0d9ebf35a","fixed":"2932095c114b98cbb40ccf34fc00d613cb17cead","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/28a371be901ef44ee03726c2575d7d6795521fe0","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/633dfbf0eb2766c597c1a59dd83035c82e14791d","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6562290225c197e2e193a53de2a517815288dcd1","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/63be324c795262f0e316c6fe9b329d83afa1ec93","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2932095c114b98cbb40ccf34fc00d613cb17cead","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31740","url":"https://www.cve.org/CVERecord?id=CVE-2026-31740","licence":"CVE Terms of Use","modified":"2026-05-11T22:14:50.719Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31740","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31740","licence":"Public domain","modified":"2026-11-11T21:10:00.200Z"}],"updatedAt":"2026-11-25T22:59:20.361Z","epss":{"score":0.00127,"percentile":0.02535,"date":"2026-12-01T12:00:22.000Z"}}