Lucene search

K
cvelistLinuxCVELIST:CVE-2022-48757
HistoryJun 20, 2024 - 11:13 a.m.

CVE-2022-48757 net: fix information leakage in /proc/net/ptype

2024-06-2011:13:36
Linux
www.cve.org
2
linux kernel
vulnerability
net namespace
packet socket
information leakage
/proc/net/ptype
cve-2022-48757

0.0004 Low

EPSS

Percentile

13.1%

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

net: fix information leakage in /proc/net/ptype

In one net namespace, after creating a packet socket without binding
it to a device, users in other net namespaces can observe the new
packet_type added by this packet socket by reading /proc/net/ptype
file. This is minor information leakage as packet socket is
namespace aware.

Add a net pointer in packet_type to keep the net namespace of
of corresponding packet socket. In ptype_seq_show, this net pointer
must be checked when it is not NULL.

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "include/linux/netdevice.h",
      "net/core/net-procfs.c",
      "net/packet/af_packet.c"
    ],
    "versions": [
      {
        "version": "2feb27dbe00c",
        "lessThan": "8f88c78d24f6",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "2feb27dbe00c",
        "lessThan": "be1ca30331c7",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "2feb27dbe00c",
        "lessThan": "c38023032a59",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "2feb27dbe00c",
        "lessThan": "b67ad6170c0e",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "2feb27dbe00c",
        "lessThan": "e372ecd455b6",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "2feb27dbe00c",
        "lessThan": "db044d97460e",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "2feb27dbe00c",
        "lessThan": "e43669c77cb3",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "2feb27dbe00c",
        "lessThan": "839ec7039513",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "2feb27dbe00c",
        "lessThan": "47934e06b656",
        "status": "affected",
        "versionType": "git"
      }
    ]
  },
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "affected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "include/linux/netdevice.h",
      "net/core/net-procfs.c",
      "net/packet/af_packet.c"
    ],
    "versions": [
      {
        "version": "2.6.26",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "2.6.26",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "4.4.302",
        "lessThanOrEqual": "4.4.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "4.9.300",
        "lessThanOrEqual": "4.9.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "4.14.265",
        "lessThanOrEqual": "4.14.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "4.19.228",
        "lessThanOrEqual": "4.19.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.4.176",
        "lessThanOrEqual": "5.4.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.10.96",
        "lessThanOrEqual": "5.10.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.15.19",
        "lessThanOrEqual": "5.15.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.16.5",
        "lessThanOrEqual": "5.16.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.17",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

0.0004 Low

EPSS

Percentile

13.1%

Related for CVELIST:CVE-2022-48757