{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-31740","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-03-09T15:48:24.138Z","datePublished":"2026-05-01T14:14:36.183Z","dateUpdated":"2026-05-11T22:14:50.719Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-05-11T22:14:50.719Z"},"descriptions":[{"lang":"en","value":"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."}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/counter/rz-mtu3-cnt.c"],"versions":[{"version":"0be8907359df4c62319f5cb2c6981ff0d9ebf35a","lessThan":"28a371be901ef44ee03726c2575d7d6795521fe0","status":"affected","versionType":"git"},{"version":"0be8907359df4c62319f5cb2c6981ff0d9ebf35a","lessThan":"633dfbf0eb2766c597c1a59dd83035c82e14791d","status":"affected","versionType":"git"},{"version":"0be8907359df4c62319f5cb2c6981ff0d9ebf35a","lessThan":"6562290225c197e2e193a53de2a517815288dcd1","status":"affected","versionType":"git"},{"version":"0be8907359df4c62319f5cb2c6981ff0d9ebf35a","lessThan":"63be324c795262f0e316c6fe9b329d83afa1ec93","status":"affected","versionType":"git"},{"version":"0be8907359df4c62319f5cb2c6981ff0d9ebf35a","lessThan":"2932095c114b98cbb40ccf34fc00d613cb17cead","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/counter/rz-mtu3-cnt.c"],"versions":[{"version":"6.4","status":"affected"},{"version":"0","lessThan":"6.4","status":"unaffected","versionType":"semver"},{"version":"6.6.134","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.81","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.22","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"6.19.12","lessThanOrEqual":"6.19.*","status":"unaffected","versionType":"semver"},{"version":"7.0","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.4","versionEndExcluding":"6.6.134"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.4","versionEndExcluding":"6.12.81"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.4","versionEndExcluding":"6.18.22"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.4","versionEndExcluding":"6.19.12"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.4","versionEndExcluding":"7.0"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/28a371be901ef44ee03726c2575d7d6795521fe0"},{"url":"https://git.kernel.org/stable/c/633dfbf0eb2766c597c1a59dd83035c82e14791d"},{"url":"https://git.kernel.org/stable/c/6562290225c197e2e193a53de2a517815288dcd1"},{"url":"https://git.kernel.org/stable/c/63be324c795262f0e316c6fe9b329d83afa1ec93"},{"url":"https://git.kernel.org/stable/c/2932095c114b98cbb40ccf34fc00d613cb17cead"}],"title":"counter: rz-mtu3-cnt: do not use struct rz_mtu3_channel's dev member","x_generator":{"engine":"bippy-1.2.0"}}}}