{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2022-48816",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2024-07-16T11:38:08.900Z",
        "datePublished": "2024-07-16T11:44:04.654Z",
        "dateUpdated": "2026-08-05T08:52:28.866Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-08-05T08:52:28.866Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nSUNRPC: lock against ->sock changing during sysfs read\n\n->sock can be set to NULL asynchronously unless ->recv_mutex is held.\nSo it is important to hold that mutex.  Otherwise a sysfs read can\ntrigger an oops.\nCommit 17f09d3f619a (\"SUNRPC: Check if the xprt is connected before\nhandling sysfs reads\") appears to attempt to fix this problem, but it\nonly narrows the race window."
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
                        "baseScore": 7.8,
                        "baseSeverity": "HIGH"
                    },
                    "scenarios": [
                        {
                            "lang": "en",
                            "value": "AV:L - The vulnerable path is reached only by reading world-readable SUNRPC sysfs attributes under /sys/kernel/sunrpc/xprt-switches/*/xprt-*/{srcaddr,xprt_info}, which requires local process access and is not reachable via network packets or adjacent-link protocols.\nAC:L - An unprivileged attacker can continuously poll those attributes while inducing concurrent transport teardown (NFS automount idle unmount, peer RST/reconnect storms, or forced disconnect), controlling both sides of the race and retrying until sock is observed NULL or freed mid-getsockname.\nPR:L - srcaddr is mode 0644 and xprt_info is 0444 with no capability check on the show path, and /sys/kernel/sunrpc directories are world-traversable, so a normal local user can trigger the vulnerable reads without root or init-namespace privileges.\nUI:N - The attacker performs the sysfs reads and can drive teardown/reconnect themselves; no separate victim action such as opening a crafted file or mounting a filesystem is required at exploit time.\nS:U - Impact is confined to the local host kernel (oops or socket UAF within SUNRPC/socket heap state) and does not cross a VM, IOMMU, or other security-authority boundary.\nC:H - Without recv_mutex, a non-NULL sock pointer can be loaded then used after xs_reset_transport()'s fput frees the socket, a classic socket UAF that heap spraying can turn into arbitrary kernel memory disclosure.\nI:H - The same unlocked race allows use-after-free of the struct socket while kernel_getsockname/xs_sock_getport runs, enabling reclaim and corruption of adjacent heap state for arbitrary write and control-flow hijacking under standard UAF exploitation.\nA:H - The documented failure mode is a kernel oops from NULL sock dereference during sysfs read, and the UAF path likewise crashes on stale socket use, so availability impact is High even without a full exploit."
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "net/sunrpc/sysfs.c",
                        "net/sunrpc/xprtsock.c"
                    ],
                    "versions": [
                        {
                            "version": "a8482488a7d6d320f63a9ee1912dbb5ae5b80a61",
                            "lessThan": "fdc42287ae3f8a35cc2098307f52d7864b4bc8ed",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "a8482488a7d6d320f63a9ee1912dbb5ae5b80a61",
                            "lessThan": "9482ab4540f5bcc869b44c067ae99b5fca16bd07",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "a8482488a7d6d320f63a9ee1912dbb5ae5b80a61",
                            "lessThan": "b49ea673e119f59c71645e2f65b3ccad857c90ee",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "21a2be1a5145d072deedc7cdc5b2d17380abea75",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "77876473912d1bf1ed16bffa1674e5ff0f499f25",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "5.10.67",
                            "lessThan": "5.11",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.13.19",
                            "lessThan": "5.14",
                            "status": "affected",
                            "versionType": "semver"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "net/sunrpc/sysfs.c",
                        "net/sunrpc/xprtsock.c"
                    ],
                    "versions": [
                        {
                            "version": "5.14",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "5.14",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.15.209",
                            "lessThanOrEqual": "5.15.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.16.10",
                            "lessThanOrEqual": "5.16.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.17",
                            "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": "5.14",
                                    "versionEndExcluding": "5.15.209"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.14",
                                    "versionEndExcluding": "5.16.10"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.14",
                                    "versionEndExcluding": "5.17"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.10.67"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.13.19"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/fdc42287ae3f8a35cc2098307f52d7864b4bc8ed"
                },
                {
                    "url": "https://git.kernel.org/stable/c/9482ab4540f5bcc869b44c067ae99b5fca16bd07"
                },
                {
                    "url": "https://git.kernel.org/stable/c/b49ea673e119f59c71645e2f65b3ccad857c90ee"
                }
            ],
            "title": "SUNRPC: lock against ->sock changing during sysfs read",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        },
        "adp": [
            {
                "providerMetadata": {
                    "orgId": "af854a3a-2127-422b-91ae-364da2661108",
                    "shortName": "CVE",
                    "dateUpdated": "2024-08-03T15:25:01.591Z"
                },
                "title": "CVE Program Container",
                "references": [
                    {
                        "url": "https://git.kernel.org/stable/c/9482ab4540f5bcc869b44c067ae99b5fca16bd07",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://git.kernel.org/stable/c/b49ea673e119f59c71645e2f65b3ccad857c90ee",
                        "tags": [
                            "x_transferred"
                        ]
                    }
                ]
            },
            {
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "id": "CVE-2022-48816",
                                "role": "CISA Coordinator",
                                "options": [
                                    {
                                        "Exploitation": "none"
                                    },
                                    {
                                        "Automatable": "no"
                                    },
                                    {
                                        "Technical Impact": "partial"
                                    }
                                ],
                                "version": "2.0.3",
                                "timestamp": "2024-09-10T16:58:15.719556Z"
                            }
                        }
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2024-09-11T17:33:00.382Z"
                }
            }
        ]
    }
}