CVE-2022-48882

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-48882
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-48882.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-48882
Downstream
Related
Published
2024-08-21T06:10:13Z
Modified
2025-10-14T20:27:52.986232Z
Summary
net/mlx5e: Fix macsec possible null dereference when updating MAC security entity (SecY)
Details

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

net/mlx5e: Fix macsec possible null dereference when updating MAC security entity (SecY)

Upon updating MAC security entity (SecY) in hw offload path, the macsec security association (SA) initialization routine is called. In case of extended packet number (epn) is enabled the salt and ssci attributes are retrieved using the MACsec driver rx_sa context which is unavailable when updating a SecY property such as encoding-sa hence the null dereference. Fix by using the provided SA to set those attributes.

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
4411a6c0abd3e55b4a4fb9432b3a0553f12337c2
Fixed
514d9c6a39213d8200884e70f60ce7faef1ee597
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
4411a6c0abd3e55b4a4fb9432b3a0553f12337c2
Fixed
9828994ac492e8e7de47fe66097b7e665328f348

Affected versions

v6.*

v6.0
v6.0-rc7
v6.1
v6.1-rc1
v6.1-rc2
v6.1-rc3
v6.1-rc4
v6.1-rc5
v6.1-rc6
v6.1-rc7
v6.1-rc8
v6.1.1
v6.1.2
v6.1.3
v6.1.4
v6.1.5
v6.1.6
v6.2-rc1
v6.2-rc2

Database specific

{
    "vanir_signatures": [
        {
            "signature_type": "Function",
            "target": {
                "file": "drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c",
                "function": "mlx5e_macsec_init_sa"
            },
            "deprecated": false,
            "digest": {
                "function_hash": "239132142055953735736630148835532392639",
                "length": 1674.0
            },
            "id": "CVE-2022-48882-01f96fda",
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@514d9c6a39213d8200884e70f60ce7faef1ee597",
            "signature_version": "v1"
        },
        {
            "signature_type": "Function",
            "target": {
                "file": "drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c",
                "function": "mlx5e_macsec_init_sa"
            },
            "deprecated": false,
            "digest": {
                "function_hash": "239132142055953735736630148835532392639",
                "length": 1674.0
            },
            "id": "CVE-2022-48882-0bfb5249",
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9828994ac492e8e7de47fe66097b7e665328f348",
            "signature_version": "v1"
        },
        {
            "signature_type": "Line",
            "target": {
                "file": "drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c"
            },
            "deprecated": false,
            "digest": {
                "threshold": 0.9,
                "line_hashes": [
                    "75643586707275970595499201213103486276",
                    "101204451463751899964356543293176418535",
                    "302693080889280359226736721235803353864",
                    "292730696417304979196408198244907570931",
                    "132136423574734387889405398029942349505",
                    "143833814951131374229632593964300359999",
                    "123203023276821054082875930352288656061",
                    "116814096644209243533556206567125513465",
                    "238815995377980121523536912508257984365",
                    "299081751700995084624000288231400121891",
                    "276412510088586808520908272734074473771",
                    "43482224661103497380667163005133852880"
                ]
            },
            "id": "CVE-2022-48882-54f43d9b",
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9828994ac492e8e7de47fe66097b7e665328f348",
            "signature_version": "v1"
        },
        {
            "signature_type": "Line",
            "target": {
                "file": "drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c"
            },
            "deprecated": false,
            "digest": {
                "threshold": 0.9,
                "line_hashes": [
                    "75643586707275970595499201213103486276",
                    "101204451463751899964356543293176418535",
                    "302693080889280359226736721235803353864",
                    "292730696417304979196408198244907570931",
                    "132136423574734387889405398029942349505",
                    "143833814951131374229632593964300359999",
                    "123203023276821054082875930352288656061",
                    "116814096644209243533556206567125513465",
                    "238815995377980121523536912508257984365",
                    "299081751700995084624000288231400121891",
                    "276412510088586808520908272734074473771",
                    "43482224661103497380667163005133852880"
                ]
            },
            "id": "CVE-2022-48882-eeaeb475",
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@514d9c6a39213d8200884e70f60ce7faef1ee597",
            "signature_version": "v1"
        }
    ]
}

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.1.0
Fixed
6.1.7