Skip to content
Heist/ feed
Back to feed
UnratedFix available

sock: redo the psock vs ULP protection check

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: sock: redo the psock vs ULP protection check Commit 8a59f9d1e3d4 ("sock: Introduce sk->sk_prot->psock_update_sk_prot()") has moved the inet_csk_has_ulp(sk) check from sk_psock_init() to the new tcp_bpf_update_proto() function. I'm guessing that this was done to allow creating psocks for non-inet sockets. Unfortunately the destruction path for psock includes the ULP unwind, so we need to fail the sk_psock_init() itself. Otherwise if ULP is already present we'll notice that later, and call tcp_update_ulp() with the sk_proto of the ULP itself, which will most likely result in the ULP looping its callbacks.

Products
Kernel
Affected versions
Not specified
Fixed versions
5.15.51, 5.18.8
CVEs
CVE-2022-49732
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 14:46 UTC · Revision 1

Source evidence

sock: redo the psock vs ULP protection check

core-osv · Original source

Published 26 Feb 2025, 14:57 UTC

In the Linux kernel, the following vulnerability has been resolved: sock: redo the psock vs ULP protection check Commit 8a59f9d1e3d4 ("sock: Introduce sk->sk_prot->psock_update_sk_prot()") has moved the inet_csk_has_ulp(sk) check from sk_psock_init() to the new tcp_bpf_update_proto() function. I'm guessing that this was done to allow creating psocks for non-inet sockets. Unfortunately the destruction path for psock includes the ULP unwind, so we need to fail the sk_psock_init() itself. Otherwise if ULP is already present we'll notice that later, and call tcp_update_ulp() with the sk_proto of the ULP itself, which will most likely result in the ULP looping its callbacks.

osv:CVE-2022-49732

Kernel

Fixed versions: 5.15.51, 5.18.8

Complete source record
{
  "id": "3f380151d4e68c125da4000aedc1b5f1c74455bfd186f9492a32c2f2adde4e2c",
  "url": "https://osv.dev/vulnerability/CVE-2022-49732",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "sock: redo the psock vs ULP protection check",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: sock: redo the psock vs ULP protection check Commit 8a59f9d1e3d4 (\"sock: Introduce sk->sk_prot->psock_update_sk_prot()\") has moved the inet_csk_has_ulp(sk) check from sk_psock_init() to the new tcp_bpf_update_proto() function. I'm guessing that this was done to allow creating psocks for non-inet sockets. Unfortunately the destruction path for psock includes the ULP unwind, so we need to fail the sk_psock_init() itself. Otherwise if ULP is already present we'll notice that later, and call tcp_update_ulp() with the sk_proto of the ULP itself, which will most likely result in the ULP looping its callbacks.",
    "evidence": "osv:CVE-2022-49732",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.15.51",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.18.8",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2022-49732",
      "aliases": [
        "CVE-2022-49732"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "8a59f9d1e3d4340659fdfee8879dc09a6f2546e1"
                },
                {
                  "fixed": "72fa0f65b56605b8a9ae9fba2082f2123f7fe017"
                },
                {
                  "fixed": "922309e50befb0cfa5cb65e4989b7706d6578846"
                },
                {
                  "fixed": "e34a07c0ae3906f97eb18df50902e2a01c1015b6"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49732.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.13.0"
                },
                {
                  "fixed": "5.15.51"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "5.18.8"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49732.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:29.814012661Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/72fa0f65b56605b8a9ae9fba2082f2123f7fe017",
        "https://git.kernel.org/stable/c/922309e50befb0cfa5cb65e4989b7706d6578846",
        "https://git.kernel.org/stable/c/e34a07c0ae3906f97eb18df50902e2a01c1015b6",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49732.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-49732",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49732.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-49732",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 496491,
  "published_at": "2025-02-26T14:57:24.827+00:00"
}