cve-2024-50216
Vulnerability from cvelistv5
Published
2024-11-09 10:14
Modified
2024-12-19 09:35
Severity ?
Summary
In the Linux kernel, the following vulnerability has been resolved: xfs: fix finding a last resort AG in xfs_filestream_pick_ag When the main loop in xfs_filestream_pick_ag fails to find a suitable AG it tries to just pick the online AG. But the loop for that uses args->pag as loop iterator while the later code expects pag to be set. Fix this by reusing the max_pag case for this last resort, and also add a check for impossible case of no AG just to make sure that the uninitialized pag doesn't even escape in theory.
Impacted products
Vendor Product Version
Linux Linux Version: f8f1ed1ab3babad46b25e2dbe8de43b33fe7aaa6
Version: f8f1ed1ab3babad46b25e2dbe8de43b33fe7aaa6
Version: f8f1ed1ab3babad46b25e2dbe8de43b33fe7aaa6
Create a notification for this product.
   Linux Linux Version: 6.3
Create a notification for this product.
Show details on NVD website


{
   containers: {
      cna: {
         affected: [
            {
               defaultStatus: "unaffected",
               product: "Linux",
               programFiles: [
                  "fs/xfs/xfs_filestream.c",
                  "fs/xfs/xfs_trace.h",
               ],
               repo: "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
               vendor: "Linux",
               versions: [
                  {
                     lessThan: "77ddc732416b017180893cbb2356e9f0a414c575",
                     status: "affected",
                     version: "f8f1ed1ab3babad46b25e2dbe8de43b33fe7aaa6",
                     versionType: "git",
                  },
                  {
                     lessThan: "a023408925acd64db5c8980373fcb3e28ec6fd29",
                     status: "affected",
                     version: "f8f1ed1ab3babad46b25e2dbe8de43b33fe7aaa6",
                     versionType: "git",
                  },
                  {
                     lessThan: "dc60992ce76fbc2f71c2674f435ff6bde2108028",
                     status: "affected",
                     version: "f8f1ed1ab3babad46b25e2dbe8de43b33fe7aaa6",
                     versionType: "git",
                  },
               ],
            },
            {
               defaultStatus: "affected",
               product: "Linux",
               programFiles: [
                  "fs/xfs/xfs_filestream.c",
                  "fs/xfs/xfs_trace.h",
               ],
               repo: "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
               vendor: "Linux",
               versions: [
                  {
                     status: "affected",
                     version: "6.3",
                  },
                  {
                     lessThan: "6.3",
                     status: "unaffected",
                     version: "0",
                     versionType: "semver",
                  },
                  {
                     lessThanOrEqual: "6.6.*",
                     status: "unaffected",
                     version: "6.6.60",
                     versionType: "semver",
                  },
                  {
                     lessThanOrEqual: "6.11.*",
                     status: "unaffected",
                     version: "6.11.7",
                     versionType: "semver",
                  },
                  {
                     lessThanOrEqual: "*",
                     status: "unaffected",
                     version: "6.12",
                     versionType: "original_commit_for_fix",
                  },
               ],
            },
         ],
         descriptions: [
            {
               lang: "en",
               value: "In the Linux kernel, the following vulnerability has been resolved:\n\nxfs: fix finding a last resort AG in xfs_filestream_pick_ag\n\nWhen the main loop in xfs_filestream_pick_ag fails to find a suitable\nAG it tries to just pick the online AG.  But the loop for that uses\nargs->pag as loop iterator while the later code expects pag to be\nset.  Fix this by reusing the max_pag case for this last resort, and\nalso add a check for impossible case of no AG just to make sure that\nthe uninitialized pag doesn't even escape in theory.",
            },
         ],
         providerMetadata: {
            dateUpdated: "2024-12-19T09:35:37.777Z",
            orgId: "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            shortName: "Linux",
         },
         references: [
            {
               url: "https://git.kernel.org/stable/c/77ddc732416b017180893cbb2356e9f0a414c575",
            },
            {
               url: "https://git.kernel.org/stable/c/a023408925acd64db5c8980373fcb3e28ec6fd29",
            },
            {
               url: "https://git.kernel.org/stable/c/dc60992ce76fbc2f71c2674f435ff6bde2108028",
            },
         ],
         title: "xfs: fix finding a last resort AG in xfs_filestream_pick_ag",
         x_generator: {
            engine: "bippy-5f407fcff5a0",
         },
      },
   },
   cveMetadata: {
      assignerOrgId: "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      assignerShortName: "Linux",
      cveId: "CVE-2024-50216",
      datePublished: "2024-11-09T10:14:27.875Z",
      dateReserved: "2024-10-21T19:36:19.972Z",
      dateUpdated: "2024-12-19T09:35:37.777Z",
      state: "PUBLISHED",
   },
   dataType: "CVE_RECORD",
   dataVersion: "5.1",
   "vulnerability-lookup:meta": {
      nvd: "{\"cve\":{\"id\":\"CVE-2024-50216\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2024-11-09T11:15:06.987\",\"lastModified\":\"2024-11-12T13:56:24.513\",\"vulnStatus\":\"Awaiting Analysis\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nxfs: fix finding a last resort AG in xfs_filestream_pick_ag\\n\\nWhen the main loop in xfs_filestream_pick_ag fails to find a suitable\\nAG it tries to just pick the online AG.  But the loop for that uses\\nargs->pag as loop iterator while the later code expects pag to be\\nset.  Fix this by reusing the max_pag case for this last resort, and\\nalso add a check for impossible case of no AG just to make sure that\\nthe uninitialized pag doesn't even escape in theory.\"},{\"lang\":\"es\",\"value\":\"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: xfs: se corrige la búsqueda de un AG de último recurso en xfs_filestream_pick_ag Cuando el bucle principal en xfs_filestream_pick_ag no puede encontrar un AG adecuado, intenta simplemente elegir el AG en línea. Pero el bucle para eso usa args->pag como iterador de bucle mientras que el código posterior espera que se configure pag. Corrija esto reutilizando el caso max_pag para este último recurso y también agregue una verificación para el caso imposible de que no haya AG solo para asegurarse de que el pag no inicializado ni siquiera escape en teoría.\"}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/77ddc732416b017180893cbb2356e9f0a414c575\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/a023408925acd64db5c8980373fcb3e28ec6fd29\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/dc60992ce76fbc2f71c2674f435ff6bde2108028\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}",
   },
}


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.