CVE-2025-37846

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-37846
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-37846.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-37846
Downstream
Related
Published
2025-05-09T06:41:54Z
Modified
2025-10-18T00:41:57.543014Z
Summary
arm64: mops: Do not dereference src reg for a set operation
Details

In the Linux kernel, the following vulnerability has been resolved:

arm64: mops: Do not dereference src reg for a set operation

The source register is not used for SET* and reading it can result in a UBSAN out-of-bounds array access error, specifically when the MOPS exception is taken from a SET* sequence with XZR (reg 31) as the source. Architecturally this is the only case where a src/dst/size field in the ESR can be reported as 31.

Prior to 2de451a329cf662b the code in doel0mops() was benign as the use of ptregsread_reg() prevented the out-of-bounds access.

References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
2de451a329cf662beeba71f63c7f83ee24ca6642
Fixed
eec737e17e5567e08148550a7f1d94d495b9fb17
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
2de451a329cf662beeba71f63c7f83ee24ca6642
Fixed
43267d934eacff6c70e15545d804ebbcab8a0bf5
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
2de451a329cf662beeba71f63c7f83ee24ca6642
Fixed
5f6022a74147675124b781fdc056b291850e7786
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
2de451a329cf662beeba71f63c7f83ee24ca6642
Fixed
a13bfa4fe0d6949cea14718df2d1fe84c38cd113

Affected versions

v6.*

v6.10
v6.10-rc1
v6.10-rc2
v6.10-rc3
v6.10-rc4
v6.10-rc5
v6.10-rc6
v6.10-rc7
v6.11
v6.11-rc1
v6.11-rc2
v6.11-rc3
v6.11-rc4
v6.11-rc5
v6.11-rc6
v6.11-rc7
v6.12
v6.12-rc1
v6.12-rc2
v6.12-rc3
v6.12-rc4
v6.12-rc5
v6.12-rc6
v6.12-rc7
v6.12.1
v6.12.10
v6.12.11
v6.12.12
v6.12.13
v6.12.14
v6.12.15
v6.12.16
v6.12.17
v6.12.18
v6.12.19
v6.12.2
v6.12.20
v6.12.21
v6.12.22
v6.12.23
v6.12.3
v6.12.4
v6.12.5
v6.12.6
v6.12.7
v6.12.8
v6.12.9
v6.13
v6.13-rc1
v6.13-rc2
v6.13-rc3
v6.13-rc4
v6.13-rc5
v6.13-rc6
v6.13-rc7
v6.13.1
v6.13.10
v6.13.11
v6.13.2
v6.13.3
v6.13.4
v6.13.5
v6.13.6
v6.13.7
v6.13.8
v6.13.9
v6.14
v6.14-rc1
v6.14-rc2
v6.14-rc3
v6.14-rc4
v6.14-rc5
v6.14-rc6
v6.14-rc7
v6.14.1
v6.14.2
v6.6
v6.6-rc4
v6.6-rc5
v6.6-rc6
v6.6-rc7
v6.7
v6.7-rc1
v6.7-rc2
v6.7-rc3
v6.7-rc4
v6.7-rc5
v6.7-rc6
v6.7-rc7
v6.7-rc8
v6.8
v6.8-rc1
v6.8-rc2
v6.8-rc3
v6.8-rc4
v6.8-rc5
v6.8-rc6
v6.8-rc7
v6.9
v6.9-rc1
v6.9-rc2
v6.9-rc3
v6.9-rc4
v6.9-rc5
v6.9-rc6
v6.9-rc7

Database specific

vanir_signatures

[
    {
        "deprecated": false,
        "target": {
            "function": "arm64_mops_reset_regs",
            "file": "arch/arm64/include/asm/traps.h"
        },
        "signature_type": "Function",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5f6022a74147675124b781fdc056b291850e7786",
        "digest": {
            "function_hash": "101363213260339334121386614009292176280",
            "length": 921.0
        },
        "id": "CVE-2025-37846-1288c6c4",
        "signature_version": "v1"
    },
    {
        "deprecated": false,
        "target": {
            "function": "arm64_mops_reset_regs",
            "file": "arch/arm64/include/asm/traps.h"
        },
        "signature_type": "Function",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a13bfa4fe0d6949cea14718df2d1fe84c38cd113",
        "digest": {
            "function_hash": "101363213260339334121386614009292176280",
            "length": 921.0
        },
        "id": "CVE-2025-37846-24b690d7",
        "signature_version": "v1"
    },
    {
        "deprecated": false,
        "target": {
            "file": "arch/arm64/include/asm/traps.h"
        },
        "signature_type": "Line",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a13bfa4fe0d6949cea14718df2d1fe84c38cd113",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "273261861285181898593643579248815063067",
                "137849744101169201217970852275155626918",
                "282820244135515455716978282442626413722",
                "182252697656283818291223224340704613006",
                "296589765987038929808045896896819982503",
                "69025892094735321503754288989534096599",
                "6761013088777174473440163019279586043",
                "786208626193915125385976893952893826",
                "222596020660231191801490130617596220100"
            ]
        },
        "id": "CVE-2025-37846-300eadea",
        "signature_version": "v1"
    },
    {
        "deprecated": false,
        "target": {
            "function": "arm64_mops_reset_regs",
            "file": "arch/arm64/include/asm/traps.h"
        },
        "signature_type": "Function",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@43267d934eacff6c70e15545d804ebbcab8a0bf5",
        "digest": {
            "function_hash": "101363213260339334121386614009292176280",
            "length": 921.0
        },
        "id": "CVE-2025-37846-3fb5c02b",
        "signature_version": "v1"
    },
    {
        "deprecated": false,
        "target": {
            "file": "arch/arm64/include/asm/traps.h"
        },
        "signature_type": "Line",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@43267d934eacff6c70e15545d804ebbcab8a0bf5",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "273261861285181898593643579248815063067",
                "137849744101169201217970852275155626918",
                "282820244135515455716978282442626413722",
                "182252697656283818291223224340704613006",
                "296589765987038929808045896896819982503",
                "69025892094735321503754288989534096599",
                "6761013088777174473440163019279586043",
                "786208626193915125385976893952893826",
                "222596020660231191801490130617596220100"
            ]
        },
        "id": "CVE-2025-37846-8c6426a9",
        "signature_version": "v1"
    },
    {
        "deprecated": false,
        "target": {
            "file": "arch/arm64/include/asm/traps.h"
        },
        "signature_type": "Line",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5f6022a74147675124b781fdc056b291850e7786",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "273261861285181898593643579248815063067",
                "137849744101169201217970852275155626918",
                "282820244135515455716978282442626413722",
                "182252697656283818291223224340704613006",
                "296589765987038929808045896896819982503",
                "69025892094735321503754288989534096599",
                "6761013088777174473440163019279586043",
                "786208626193915125385976893952893826",
                "222596020660231191801490130617596220100"
            ]
        },
        "id": "CVE-2025-37846-acc3e8b3",
        "signature_version": "v1"
    },
    {
        "deprecated": false,
        "target": {
            "function": "arm64_mops_reset_regs",
            "file": "arch/arm64/include/asm/traps.h"
        },
        "signature_type": "Function",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@eec737e17e5567e08148550a7f1d94d495b9fb17",
        "digest": {
            "function_hash": "101363213260339334121386614009292176280",
            "length": 921.0
        },
        "id": "CVE-2025-37846-cb5e3873",
        "signature_version": "v1"
    },
    {
        "deprecated": false,
        "target": {
            "file": "arch/arm64/include/asm/traps.h"
        },
        "signature_type": "Line",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@eec737e17e5567e08148550a7f1d94d495b9fb17",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "273261861285181898593643579248815063067",
                "137849744101169201217970852275155626918",
                "282820244135515455716978282442626413722",
                "182252697656283818291223224340704613006",
                "296589765987038929808045896896819982503",
                "69025892094735321503754288989534096599",
                "6761013088777174473440163019279586043",
                "786208626193915125385976893952893826",
                "222596020660231191801490130617596220100"
            ]
        },
        "id": "CVE-2025-37846-f2729316",
        "signature_version": "v1"
    }
]

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.24
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.13.12
Type
ECOSYSTEM
Events
Introduced
6.14.0
Fixed
6.14.3