CVE-2022-49273

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-49273
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49273.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-49273
Downstream
Related
Published
2025-02-26T01:56:19Z
Modified
2025-10-14T22:05:41.277983Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
rtc: pl031: fix rtc features null pointer dereference
Details

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

rtc: pl031: fix rtc features null pointer dereference

When there is no interrupt line, rtc alarm feature is disabled.

The clearing of the alarm feature bit was being done prior to allocations of ldata->rtc device, resulting in a null pointer dereference.

Clear RTCFEATUREALARM after the rtc device is allocated.

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
d9b0dd54a1943f47a381a474f8ea2c94466110c0
Fixed
cd2722e411e8ab7e5ae41102f6925fa13dffdac5
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
d9b0dd54a1943f47a381a474f8ea2c94466110c0
Fixed
d274ce4a3dfd0b9a292667535578359b865765cb
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
d9b0dd54a1943f47a381a474f8ea2c94466110c0
Fixed
1b915703964f7e636961df04c540261dc55c6c70
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
d9b0dd54a1943f47a381a474f8ea2c94466110c0
Fixed
ea6af39f3da50c86367a71eb3cc674ade3ed244c

Affected versions

v5.*

v5.11
v5.11-rc2
v5.11-rc3
v5.11-rc4
v5.11-rc5
v5.11-rc6
v5.11-rc7
v5.12
v5.12-rc1
v5.12-rc1-dontuse
v5.12-rc2
v5.12-rc3
v5.12-rc4
v5.12-rc5
v5.12-rc6
v5.12-rc7
v5.12-rc8
v5.13
v5.13-rc1
v5.13-rc2
v5.13-rc3
v5.13-rc4
v5.13-rc5
v5.13-rc6
v5.13-rc7
v5.14
v5.14-rc1
v5.14-rc2
v5.14-rc3
v5.14-rc4
v5.14-rc5
v5.14-rc6
v5.14-rc7
v5.15
v5.15-rc1
v5.15-rc2
v5.15-rc3
v5.15-rc4
v5.15-rc5
v5.15-rc6
v5.15-rc7
v5.15.1
v5.15.10
v5.15.11
v5.15.12
v5.15.13
v5.15.14
v5.15.15
v5.15.16
v5.15.17
v5.15.18
v5.15.19
v5.15.2
v5.15.20
v5.15.21
v5.15.22
v5.15.23
v5.15.24
v5.15.25
v5.15.26
v5.15.27
v5.15.28
v5.15.29
v5.15.3
v5.15.30
v5.15.31
v5.15.32
v5.15.4
v5.15.5
v5.15.6
v5.15.7
v5.15.8
v5.15.9
v5.16
v5.16-rc1
v5.16-rc2
v5.16-rc3
v5.16-rc4
v5.16-rc5
v5.16-rc6
v5.16-rc7
v5.16-rc8
v5.16.1
v5.16.10
v5.16.11
v5.16.12
v5.16.13
v5.16.14
v5.16.15
v5.16.16
v5.16.17
v5.16.18
v5.16.2
v5.16.3
v5.16.4
v5.16.5
v5.16.6
v5.16.7
v5.16.8
v5.16.9
v5.17
v5.17-rc1
v5.17-rc2
v5.17-rc3
v5.17-rc4
v5.17-rc5
v5.17-rc6
v5.17-rc7
v5.17-rc8
v5.17.1

Database specific

{
    "vanir_signatures": [
        {
            "id": "CVE-2022-49273-12249a1f",
            "signature_type": "Function",
            "target": {
                "file": "drivers/rtc/rtc-pl031.c",
                "function": "pl031_probe"
            },
            "deprecated": false,
            "digest": {
                "length": 1947.0,
                "function_hash": "297045275314048255484394119976808411820"
            },
            "signature_version": "v1",
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ea6af39f3da50c86367a71eb3cc674ade3ed244c"
        },
        {
            "id": "CVE-2022-49273-245bf5aa",
            "signature_type": "Function",
            "target": {
                "file": "drivers/rtc/rtc-pl031.c",
                "function": "pl031_probe"
            },
            "deprecated": false,
            "digest": {
                "length": 1947.0,
                "function_hash": "297045275314048255484394119976808411820"
            },
            "signature_version": "v1",
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d274ce4a3dfd0b9a292667535578359b865765cb"
        },
        {
            "id": "CVE-2022-49273-29da11ad",
            "signature_type": "Function",
            "target": {
                "file": "drivers/rtc/rtc-pl031.c",
                "function": "pl031_probe"
            },
            "deprecated": false,
            "digest": {
                "length": 1947.0,
                "function_hash": "297045275314048255484394119976808411820"
            },
            "signature_version": "v1",
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@cd2722e411e8ab7e5ae41102f6925fa13dffdac5"
        },
        {
            "id": "CVE-2022-49273-3e875bcd",
            "signature_type": "Line",
            "target": {
                "file": "drivers/rtc/rtc-pl031.c"
            },
            "deprecated": false,
            "digest": {
                "line_hashes": [
                    "314964103359532953999710050632994739779",
                    "326719581447389470599543175669907994574",
                    "18479424601716178300914268569639171721",
                    "100465412837375245356478507228816906979",
                    "103440243334788242313645932823878269211",
                    "76206020776710299550329052824146781865",
                    "311749180505568805156740174407946468687",
                    "254492581222145899147131385040241142693"
                ],
                "threshold": 0.9
            },
            "signature_version": "v1",
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1b915703964f7e636961df04c540261dc55c6c70"
        },
        {
            "id": "CVE-2022-49273-648e294f",
            "signature_type": "Function",
            "target": {
                "file": "drivers/rtc/rtc-pl031.c",
                "function": "pl031_probe"
            },
            "deprecated": false,
            "digest": {
                "length": 1947.0,
                "function_hash": "297045275314048255484394119976808411820"
            },
            "signature_version": "v1",
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1b915703964f7e636961df04c540261dc55c6c70"
        },
        {
            "id": "CVE-2022-49273-819be1bb",
            "signature_type": "Line",
            "target": {
                "file": "drivers/rtc/rtc-pl031.c"
            },
            "deprecated": false,
            "digest": {
                "line_hashes": [
                    "314964103359532953999710050632994739779",
                    "326719581447389470599543175669907994574",
                    "18479424601716178300914268569639171721",
                    "100465412837375245356478507228816906979",
                    "103440243334788242313645932823878269211",
                    "76206020776710299550329052824146781865",
                    "311749180505568805156740174407946468687",
                    "254492581222145899147131385040241142693"
                ],
                "threshold": 0.9
            },
            "signature_version": "v1",
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d274ce4a3dfd0b9a292667535578359b865765cb"
        },
        {
            "id": "CVE-2022-49273-9c871ec4",
            "signature_type": "Line",
            "target": {
                "file": "drivers/rtc/rtc-pl031.c"
            },
            "deprecated": false,
            "digest": {
                "line_hashes": [
                    "314964103359532953999710050632994739779",
                    "326719581447389470599543175669907994574",
                    "18479424601716178300914268569639171721",
                    "100465412837375245356478507228816906979",
                    "103440243334788242313645932823878269211",
                    "76206020776710299550329052824146781865",
                    "311749180505568805156740174407946468687",
                    "254492581222145899147131385040241142693"
                ],
                "threshold": 0.9
            },
            "signature_version": "v1",
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ea6af39f3da50c86367a71eb3cc674ade3ed244c"
        },
        {
            "id": "CVE-2022-49273-b7af0999",
            "signature_type": "Line",
            "target": {
                "file": "drivers/rtc/rtc-pl031.c"
            },
            "deprecated": false,
            "digest": {
                "line_hashes": [
                    "314964103359532953999710050632994739779",
                    "326719581447389470599543175669907994574",
                    "18479424601716178300914268569639171721",
                    "100465412837375245356478507228816906979",
                    "103440243334788242313645932823878269211",
                    "76206020776710299550329052824146781865",
                    "311749180505568805156740174407946468687",
                    "254492581222145899147131385040241142693"
                ],
                "threshold": 0.9
            },
            "signature_version": "v1",
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@cd2722e411e8ab7e5ae41102f6925fa13dffdac5"
        }
    ]
}

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.12.0
Fixed
5.15.33
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
5.16.19
Type
ECOSYSTEM
Events
Introduced
5.17.0
Fixed
5.17.2