{"id":"CVE-2025-37846","state":"PUBLISHED","title":"arm64: mops: Do not dereference src reg for a set operation","description":"In the Linux kernel, the following vulnerability has been resolved:\n\narm64: mops: Do not dereference src reg for a set operation\n\nThe source register is not used for SET* and reading it can result in\na UBSAN out-of-bounds array access error, specifically when the MOPS\nexception is taken from a SET* sequence with XZR (reg 31) as the\nsource. Architecturally this is the only case where a src/dst/size\nfield in the ESR can be reported as 31.\n\nPrior to 2de451a329cf662b the code in do_el0_mops() was benign as the\nuse of pt_regs_read_reg() prevented the out-of-bounds access.","publishedAt":"2025-05-09T06:41:54.648Z","updatedAt":"2026-05-11T21:16:14.509Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"2de451a329cf662beeba71f63c7f83ee24ca6642","status":"affected","lessThan":"eec737e17e5567e08148550a7f1d94d495b9fb17","versionType":"git"},{"version":"2de451a329cf662beeba71f63c7f83ee24ca6642","status":"affected","lessThan":"43267d934eacff6c70e15545d804ebbcab8a0bf5","versionType":"git"},{"version":"2de451a329cf662beeba71f63c7f83ee24ca6642","status":"affected","lessThan":"5f6022a74147675124b781fdc056b291850e7786","versionType":"git"},{"version":"2de451a329cf662beeba71f63c7f83ee24ca6642","status":"affected","lessThan":"a13bfa4fe0d6949cea14718df2d1fe84c38cd113","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/arm64/include/asm/traps.h"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.7","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.7","versionType":"semver"},{"version":"6.12.24","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.13.12","status":"unaffected","lessThanOrEqual":"6.13.*","versionType":"semver"},{"version":"6.14.3","status":"unaffected","lessThanOrEqual":"6.14.*","versionType":"semver"},{"version":"6.15","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/arm64/include/asm/traps.h"]}],"references":["https://git.kernel.org/stable/c/eec737e17e5567e08148550a7f1d94d495b9fb17","https://git.kernel.org/stable/c/43267d934eacff6c70e15545d804ebbcab8a0bf5","https://git.kernel.org/stable/c/5f6022a74147675124b781fdc056b291850e7786","https://git.kernel.org/stable/c/a13bfa4fe0d6949cea14718df2d1fe84c38cd113"],"weaknesses":[],"ingestedAt":"2026-10-29T20:09:03.054Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/37xxx/CVE-2025-37846.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-37846","state":"PUBLISHED","datePublished":"2025-05-09T06:41:54.648Z","dateUpdated":"2026-05-11T21:16:14.509Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-04-16T04:51:23.953Z"},"containers":{"cna":{"title":"arm64: mops: Do not dereference src reg for a set operation","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\narm64: mops: Do not dereference src reg for a set operation\n\nThe source register is not used for SET* and reading it can result in\na UBSAN out-of-bounds array access error, specifically when the MOPS\nexception is taken from a SET* sequence with XZR (reg 31) as the\nsource. Architecturally this is the only case where a src/dst/size\nfield in the ESR can be reported as 31.\n\nPrior to 2de451a329cf662b the code in do_el0_mops() was benign as the\nuse of pt_regs_read_reg() prevented the out-of-bounds access."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"2de451a329cf662beeba71f63c7f83ee24ca6642","status":"affected","lessThan":"eec737e17e5567e08148550a7f1d94d495b9fb17","versionType":"git"},{"version":"2de451a329cf662beeba71f63c7f83ee24ca6642","status":"affected","lessThan":"43267d934eacff6c70e15545d804ebbcab8a0bf5","versionType":"git"},{"version":"2de451a329cf662beeba71f63c7f83ee24ca6642","status":"affected","lessThan":"5f6022a74147675124b781fdc056b291850e7786","versionType":"git"},{"version":"2de451a329cf662beeba71f63c7f83ee24ca6642","status":"affected","lessThan":"a13bfa4fe0d6949cea14718df2d1fe84c38cd113","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/arm64/include/asm/traps.h"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.7","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.7","versionType":"semver"},{"version":"6.12.24","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.13.12","status":"unaffected","lessThanOrEqual":"6.13.*","versionType":"semver"},{"version":"6.14.3","status":"unaffected","lessThanOrEqual":"6.14.*","versionType":"semver"},{"version":"6.15","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/arm64/include/asm/traps.h"]}],"references":[{"url":"https://git.kernel.org/stable/c/eec737e17e5567e08148550a7f1d94d495b9fb17"},{"url":"https://git.kernel.org/stable/c/43267d934eacff6c70e15545d804ebbcab8a0bf5"},{"url":"https://git.kernel.org/stable/c/5f6022a74147675124b781fdc056b291850e7786"},{"url":"https://git.kernel.org/stable/c/a13bfa4fe0d6949cea14718df2d1fe84c38cd113"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T21:16:14.509Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.7","versionEndExcluding":"6.12.24"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.7","versionEndExcluding":"6.13.12"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.7","versionEndExcluding":"6.14.3"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.7","versionEndExcluding":"6.15"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}