{
   "containers": {
      "cna": {
         "providerMetadata": {
            "orgId": "f4215fc3-5b6b-47ff-a258-f7189bd81038"
         },
         "descriptions": [
            {
               "lang": "en",
               "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnet: fix information leakage in /proc/net/ptype\n\nIn one net namespace, after creating a packet socket without binding\nit to a device, users in other net namespaces can observe the new\n`packet_type` added by this packet socket by reading `/proc/net/ptype`\nfile. This is minor information leakage as packet socket is\nnamespace aware.\n\nAdd a net pointer in `packet_type` to keep the net namespace of\nof corresponding packet socket. In `ptype_seq_show`, this net pointer\nmust be checked when it is not NULL."
            }
         ],
         "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"
                  }
               ]
            }
         ],
         "references": [
            {
               "url": "https://git.kernel.org/stable/c/8f88c78d24f6f346919007cd459fd7e51a8c7779"
            },
            {
               "url": "https://git.kernel.org/stable/c/be1ca30331c7923c6f376610c1bd6059be9b1908"
            },
            {
               "url": "https://git.kernel.org/stable/c/c38023032a598ec6263e008d62c7f02def72d5c7"
            },
            {
               "url": "https://git.kernel.org/stable/c/b67ad6170c0ea87391bb253f35d1f78857736e54"
            },
            {
               "url": "https://git.kernel.org/stable/c/e372ecd455b6ebc7720f52bf4b5f5d44d02f2092"
            },
            {
               "url": "https://git.kernel.org/stable/c/db044d97460ea792110eb8b971e82569ded536c6"
            },
            {
               "url": "https://git.kernel.org/stable/c/e43669c77cb3a742b7d84ecdc7c68c4167a7709b"
            },
            {
               "url": "https://git.kernel.org/stable/c/839ec7039513a4f84bfbaff953a9393471176bee"
            },
            {
               "url": "https://git.kernel.org/stable/c/47934e06b65637c88a762d9c98329ae6e3238888"
            }
         ],
         "title": "net: fix information leakage in /proc/net/ptype",
         "x_generator": {
            "engine": "bippy-7d53e8ef8be4"
         }
      }
   },
   "cveMetadata": {
      "assignerOrgId": "f4215fc3-5b6b-47ff-a258-f7189bd81038",
      "cveID": "CVE-2022-48757",
      "requesterUserId": "gregkh@kernel.org",
      "serial": "1",
      "state": "PUBLISHED"
   },
   "dataType": "CVE_RECORD",
   "dataVersion": "5.0"
}
