cve-2021-47507
Vulnerability from cvelistv5
Published
2024-05-24 15:01
Modified
2024-12-19 07:43
Severity ?
Summary
In the Linux kernel, the following vulnerability has been resolved: nfsd: Fix nsfd startup race (again) Commit bd5ae9288d64 ("nfsd: register pernet ops last, unregister first") has re-opened rpc_pipefs_event() race against nfsd_net_id registration (register_pernet_subsys()) which has been fixed by commit bb7ffbf29e76 ("nfsd: fix nsfd startup race triggering BUG_ON"). Restore the order of register_pernet_subsys() vs register_cld_notifier(). Add WARN_ON() to prevent a future regression. Crash info: Unable to handle kernel NULL pointer dereference at virtual address 0000000000000012 CPU: 8 PID: 345 Comm: mount Not tainted 5.4.144-... #1 pc : rpc_pipefs_event+0x54/0x120 [nfsd] lr : rpc_pipefs_event+0x48/0x120 [nfsd] Call trace: rpc_pipefs_event+0x54/0x120 [nfsd] blocking_notifier_call_chain rpc_fill_super get_tree_keyed rpc_fs_get_tree vfs_get_tree do_mount ksys_mount __arm64_sys_mount el0_svc_handler el0_svc
Impacted products
Vendor Product Version
Linux Linux Version: 8677e99150b0830d29cc1318b4cc559e176940bb
Version: 7c7cb07d4affcf41749234fe9dc4d90cd3959e32
Version: bd5ae9288d6451bd346a1b4a59d4fe7e62ba29b7
Version: bd5ae9288d6451bd346a1b4a59d4fe7e62ba29b7
Create a notification for this product.
   Linux Linux Version: 5.12
Create a notification for this product.
Show details on NVD website


{
   containers: {
      adp: [
         {
            providerMetadata: {
               dateUpdated: "2024-08-04T05:39:59.833Z",
               orgId: "af854a3a-2127-422b-91ae-364da2661108",
               shortName: "CVE",
            },
            references: [
               {
                  tags: [
                     "x_transferred",
                  ],
                  url: "https://git.kernel.org/stable/c/f5734b1714ca355703e9ea8fb61d04beff1790b9",
               },
               {
                  tags: [
                     "x_transferred",
                  ],
                  url: "https://git.kernel.org/stable/c/c520943a00ad5015704969ad3304c956bcd49d25",
               },
               {
                  tags: [
                     "x_transferred",
                  ],
                  url: "https://git.kernel.org/stable/c/8bf902fee5893cfc2f04a698abab47629699ae9a",
               },
               {
                  tags: [
                     "x_transferred",
                  ],
                  url: "https://git.kernel.org/stable/c/b10252c7ae9c9d7c90552f88b544a44ee773af64",
               },
            ],
            title: "CVE Program Container",
         },
         {
            metrics: [
               {
                  other: {
                     content: {
                        id: "CVE-2021-47507",
                        options: [
                           {
                              Exploitation: "none",
                           },
                           {
                              Automatable: "no",
                           },
                           {
                              "Technical Impact": "partial",
                           },
                        ],
                        role: "CISA Coordinator",
                        timestamp: "2024-09-10T15:35:42.793649Z",
                        version: "2.0.3",
                     },
                     type: "ssvc",
                  },
               },
            ],
            providerMetadata: {
               dateUpdated: "2024-09-11T17:32:52.727Z",
               orgId: "134c704f-9b21-4f2e-91b3-4a467353bcc0",
               shortName: "CISA-ADP",
            },
            title: "CISA ADP Vulnrichment",
         },
      ],
      cna: {
         affected: [
            {
               defaultStatus: "unaffected",
               product: "Linux",
               programFiles: [
                  "fs/nfsd/nfs4recover.c",
                  "fs/nfsd/nfsctl.c",
               ],
               repo: "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
               vendor: "Linux",
               versions: [
                  {
                     lessThan: "f5734b1714ca355703e9ea8fb61d04beff1790b9",
                     status: "affected",
                     version: "8677e99150b0830d29cc1318b4cc559e176940bb",
                     versionType: "git",
                  },
                  {
                     lessThan: "c520943a00ad5015704969ad3304c956bcd49d25",
                     status: "affected",
                     version: "7c7cb07d4affcf41749234fe9dc4d90cd3959e32",
                     versionType: "git",
                  },
                  {
                     lessThan: "8bf902fee5893cfc2f04a698abab47629699ae9a",
                     status: "affected",
                     version: "bd5ae9288d6451bd346a1b4a59d4fe7e62ba29b7",
                     versionType: "git",
                  },
                  {
                     lessThan: "b10252c7ae9c9d7c90552f88b544a44ee773af64",
                     status: "affected",
                     version: "bd5ae9288d6451bd346a1b4a59d4fe7e62ba29b7",
                     versionType: "git",
                  },
               ],
            },
            {
               defaultStatus: "affected",
               product: "Linux",
               programFiles: [
                  "fs/nfsd/nfs4recover.c",
                  "fs/nfsd/nfsctl.c",
               ],
               repo: "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
               vendor: "Linux",
               versions: [
                  {
                     status: "affected",
                     version: "5.12",
                  },
                  {
                     lessThan: "5.12",
                     status: "unaffected",
                     version: "0",
                     versionType: "semver",
                  },
                  {
                     lessThanOrEqual: "5.4.*",
                     status: "unaffected",
                     version: "5.4.165",
                     versionType: "semver",
                  },
                  {
                     lessThanOrEqual: "5.10.*",
                     status: "unaffected",
                     version: "5.10.85",
                     versionType: "semver",
                  },
                  {
                     lessThanOrEqual: "5.15.*",
                     status: "unaffected",
                     version: "5.15.8",
                     versionType: "semver",
                  },
                  {
                     lessThanOrEqual: "*",
                     status: "unaffected",
                     version: "5.16",
                     versionType: "original_commit_for_fix",
                  },
               ],
            },
         ],
         descriptions: [
            {
               lang: "en",
               value: "In the Linux kernel, the following vulnerability has been resolved:\n\nnfsd: Fix nsfd startup race (again)\n\nCommit bd5ae9288d64 (\"nfsd: register pernet ops last, unregister first\")\nhas re-opened rpc_pipefs_event() race against nfsd_net_id registration\n(register_pernet_subsys()) which has been fixed by commit bb7ffbf29e76\n(\"nfsd: fix nsfd startup race triggering BUG_ON\").\n\nRestore the order of register_pernet_subsys() vs register_cld_notifier().\nAdd WARN_ON() to prevent a future regression.\n\nCrash info:\nUnable to handle kernel NULL pointer dereference at virtual address 0000000000000012\nCPU: 8 PID: 345 Comm: mount Not tainted 5.4.144-... #1\npc : rpc_pipefs_event+0x54/0x120 [nfsd]\nlr : rpc_pipefs_event+0x48/0x120 [nfsd]\nCall trace:\n rpc_pipefs_event+0x54/0x120 [nfsd]\n blocking_notifier_call_chain\n rpc_fill_super\n get_tree_keyed\n rpc_fs_get_tree\n vfs_get_tree\n do_mount\n ksys_mount\n __arm64_sys_mount\n el0_svc_handler\n el0_svc",
            },
         ],
         providerMetadata: {
            dateUpdated: "2024-12-19T07:43:47.496Z",
            orgId: "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            shortName: "Linux",
         },
         references: [
            {
               url: "https://git.kernel.org/stable/c/f5734b1714ca355703e9ea8fb61d04beff1790b9",
            },
            {
               url: "https://git.kernel.org/stable/c/c520943a00ad5015704969ad3304c956bcd49d25",
            },
            {
               url: "https://git.kernel.org/stable/c/8bf902fee5893cfc2f04a698abab47629699ae9a",
            },
            {
               url: "https://git.kernel.org/stable/c/b10252c7ae9c9d7c90552f88b544a44ee773af64",
            },
         ],
         title: "nfsd: Fix nsfd startup race (again)",
         x_generator: {
            engine: "bippy-5f407fcff5a0",
         },
      },
   },
   cveMetadata: {
      assignerOrgId: "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      assignerShortName: "Linux",
      cveId: "CVE-2021-47507",
      datePublished: "2024-05-24T15:01:53.401Z",
      dateReserved: "2024-05-22T06:20:56.206Z",
      dateUpdated: "2024-12-19T07:43:47.496Z",
      state: "PUBLISHED",
   },
   dataType: "CVE_RECORD",
   dataVersion: "5.1",
   "vulnerability-lookup:meta": {
      nvd: "{\"cve\":{\"id\":\"CVE-2021-47507\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2024-05-24T15:15:11.400\",\"lastModified\":\"2024-11-21T06:36:22.873\",\"vulnStatus\":\"Awaiting Analysis\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nnfsd: Fix nsfd startup race (again)\\n\\nCommit bd5ae9288d64 (\\\"nfsd: register pernet ops last, unregister first\\\")\\nhas re-opened rpc_pipefs_event() race against nfsd_net_id registration\\n(register_pernet_subsys()) which has been fixed by commit bb7ffbf29e76\\n(\\\"nfsd: fix nsfd startup race triggering BUG_ON\\\").\\n\\nRestore the order of register_pernet_subsys() vs register_cld_notifier().\\nAdd WARN_ON() to prevent a future regression.\\n\\nCrash info:\\nUnable to handle kernel NULL pointer dereference at virtual address 0000000000000012\\nCPU: 8 PID: 345 Comm: mount Not tainted 5.4.144-... #1\\npc : rpc_pipefs_event+0x54/0x120 [nfsd]\\nlr : rpc_pipefs_event+0x48/0x120 [nfsd]\\nCall trace:\\n rpc_pipefs_event+0x54/0x120 [nfsd]\\n blocking_notifier_call_chain\\n rpc_fill_super\\n get_tree_keyed\\n rpc_fs_get_tree\\n vfs_get_tree\\n do_mount\\n ksys_mount\\n __arm64_sys_mount\\n el0_svc_handler\\n el0_svc\"},{\"lang\":\"es\",\"value\":\"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: nfsd: corrige la ejecución de inicio de nsfd (nuevamente) El commit bd5ae9288d64 (\\\"nfsd: registre las operaciones de pernet al final, anule el registro primero\\\") ha reabierto la ejecución de rpc_pipefs_event() contra el registro de nfsd_net_id (register_pernet_subsys( )) que se ha solucionado mediante el commit bb7ffbf29e76 (\\\"nfsd: arreglar la ejecución de inicio de nsfd que activa BUG_ON\\\"). Restaure el orden de Register_pernet_subsys() frente a Register_cld_notifier(). Agregue WARN_ON() para evitar una regresión futura. Información de falla: no se puede manejar la desreferencia del puntero NULL del kernel en la dirección virtual 0000000000000012 CPU: 8 PID: 345 Comm: mount Not tainted 5.4.144-... #1 pc: rpc_pipefs_event+0x54/0x120 [nfsd] lr: rpc_pipefs_event+0x48/ 0x120 [nfsd] Rastreo de llamadas: rpc_pipefs_event+0x54/0x120 [nfsd] blocking_notifier_call_chain rpc_fill_super get_tree_keyed rpc_fs_get_tree vfs_get_tree do_mount ksys_mount __arm64_sys_mount el0_svc_handler el0_svc\"}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/8bf902fee5893cfc2f04a698abab47629699ae9a\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/b10252c7ae9c9d7c90552f88b544a44ee773af64\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/c520943a00ad5015704969ad3304c956bcd49d25\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/f5734b1714ca355703e9ea8fb61d04beff1790b9\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/8bf902fee5893cfc2f04a698abab47629699ae9a\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\"},{\"url\":\"https://git.kernel.org/stable/c/b10252c7ae9c9d7c90552f88b544a44ee773af64\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\"},{\"url\":\"https://git.kernel.org/stable/c/c520943a00ad5015704969ad3304c956bcd49d25\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\"},{\"url\":\"https://git.kernel.org/stable/c/f5734b1714ca355703e9ea8fb61d04beff1790b9\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\"}]}}",
      vulnrichment: {
         containers: "{\"adp\": [{\"title\": \"CVE Program Container\", \"references\": [{\"url\": \"https://git.kernel.org/stable/c/f5734b1714ca355703e9ea8fb61d04beff1790b9\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/c520943a00ad5015704969ad3304c956bcd49d25\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/8bf902fee5893cfc2f04a698abab47629699ae9a\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/b10252c7ae9c9d7c90552f88b544a44ee773af64\", \"tags\": [\"x_transferred\"]}], \"providerMetadata\": {\"orgId\": \"af854a3a-2127-422b-91ae-364da2661108\", \"shortName\": \"CVE\", \"dateUpdated\": \"2024-08-04T05:39:59.833Z\"}}, {\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2021-47507\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2024-09-10T15:35:42.793649Z\"}}}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2024-09-11T12:42:13.203Z\"}}], \"cna\": {\"title\": \"nfsd: Fix nsfd startup race (again)\", \"affected\": [{\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"8677e99150b0\", \"lessThan\": \"f5734b1714ca\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"7c7cb07d4aff\", \"lessThan\": \"c520943a00ad\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"bd5ae9288d64\", \"lessThan\": \"8bf902fee589\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"bd5ae9288d64\", \"lessThan\": \"b10252c7ae9c\", \"versionType\": \"git\"}], \"programFiles\": [\"fs/nfsd/nfs4recover.c\", \"fs/nfsd/nfsctl.c\"], \"defaultStatus\": \"unaffected\"}, {\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"5.12\"}, {\"status\": \"unaffected\", \"version\": \"0\", \"lessThan\": \"5.12\", \"versionType\": \"semver\"}, {\"status\": \"unaffected\", \"version\": \"5.4.165\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.4.*\"}, {\"status\": \"unaffected\", \"version\": \"5.10.85\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.10.*\"}, {\"status\": \"unaffected\", \"version\": \"5.15.8\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.15.*\"}, {\"status\": \"unaffected\", \"version\": \"5.16\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"*\"}], \"programFiles\": [\"fs/nfsd/nfs4recover.c\", \"fs/nfsd/nfsctl.c\"], \"defaultStatus\": \"affected\"}], \"references\": [{\"url\": \"https://git.kernel.org/stable/c/f5734b1714ca355703e9ea8fb61d04beff1790b9\"}, {\"url\": \"https://git.kernel.org/stable/c/c520943a00ad5015704969ad3304c956bcd49d25\"}, {\"url\": \"https://git.kernel.org/stable/c/8bf902fee5893cfc2f04a698abab47629699ae9a\"}, {\"url\": \"https://git.kernel.org/stable/c/b10252c7ae9c9d7c90552f88b544a44ee773af64\"}], \"x_generator\": {\"engine\": \"bippy-c8e10e5f6187\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"In the Linux kernel, the following vulnerability has been resolved:\\n\\nnfsd: Fix nsfd startup race (again)\\n\\nCommit bd5ae9288d64 (\\\"nfsd: register pernet ops last, unregister first\\\")\\nhas re-opened rpc_pipefs_event() race against nfsd_net_id registration\\n(register_pernet_subsys()) which has been fixed by commit bb7ffbf29e76\\n(\\\"nfsd: fix nsfd startup race triggering BUG_ON\\\").\\n\\nRestore the order of register_pernet_subsys() vs register_cld_notifier().\\nAdd WARN_ON() to prevent a future regression.\\n\\nCrash info:\\nUnable to handle kernel NULL pointer dereference at virtual address 0000000000000012\\nCPU: 8 PID: 345 Comm: mount Not tainted 5.4.144-... #1\\npc : rpc_pipefs_event+0x54/0x120 [nfsd]\\nlr : rpc_pipefs_event+0x48/0x120 [nfsd]\\nCall trace:\\n rpc_pipefs_event+0x54/0x120 [nfsd]\\n blocking_notifier_call_chain\\n rpc_fill_super\\n get_tree_keyed\\n rpc_fs_get_tree\\n vfs_get_tree\\n do_mount\\n ksys_mount\\n __arm64_sys_mount\\n el0_svc_handler\\n el0_svc\"}], \"providerMetadata\": {\"orgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"shortName\": \"Linux\", \"dateUpdated\": \"2024-11-04T11:42:37.888Z\"}}}",
         cveMetadata: "{\"cveId\": \"CVE-2021-47507\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2024-11-04T11:42:37.888Z\", \"dateReserved\": \"2024-05-22T06:20:56.206Z\", \"assignerOrgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"datePublished\": \"2024-05-24T15:01:53.401Z\", \"assignerShortName\": \"Linux\"}",
         dataType: "CVE_RECORD",
         dataVersion: "5.1",
      },
   },
}


Log in or create an account to share your comment.

Security Advisory comment format.

This schema specifies the format of a comment related to a security advisory.

UUIDv4 of the comment
UUIDv4 of the Vulnerability-Lookup instance
When the comment was created originally
When the comment was last updated
Title of the comment
Description of the comment
The identifier of the vulnerability (CVE ID, GHSA-ID, PYSEC ID, etc.).



Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.