{
   "containers": {
      "cna": {
         "providerMetadata": {
            "orgId": "f4215fc3-5b6b-47ff-a258-f7189bd81038"
         },
         "descriptions": [
            {
               "lang": "en",
               "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nubifs: Set page uptodate in the correct place\n\nPage cache reads are lockless, so setting the freshly allocated page\nuptodate before we've overwritten it with the data it's supposed to have\nin it will allow a simultaneous reader to see old data.  Move the call\nto SetPageUptodate into ubifs_write_end(), which is after we copied the\nnew data into the page."
            }
         ],
         "affected": [
            {
               "product": "Linux",
               "vendor": "Linux",
               "defaultStatus": "unaffected",
               "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
               "programFiles": [
                  "fs/ubifs/file.c"
               ],
               "versions": [
                  {
                     "version": "1e51764a3c2a",
                     "lessThan": "4aa554832b9d",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "1e51764a3c2a",
                     "lessThan": "778c6ad40256",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "1e51764a3c2a",
                     "lessThan": "8f599ab6fabb",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "1e51764a3c2a",
                     "lessThan": "f19b1023a375",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "1e51764a3c2a",
                     "lessThan": "142d87c958d9",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "1e51764a3c2a",
                     "lessThan": "fc99f4e2d2f1",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "1e51764a3c2a",
                     "lessThan": "4b7c4fc60d6a",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "1e51764a3c2a",
                     "lessThan": "17772bbe9cfa",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "1e51764a3c2a",
                     "lessThan": "723012cab779",
                     "status": "affected",
                     "versionType": "git"
                  }
               ]
            },
            {
               "product": "Linux",
               "vendor": "Linux",
               "defaultStatus": "affected",
               "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
               "programFiles": [
                  "fs/ubifs/file.c"
               ],
               "versions": [
                  {
                     "version": "2.6.27",
                     "status": "affected"
                  },
                  {
                     "version": "0",
                     "lessThan": "2.6.27",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "4.19.312",
                     "lessThanOrEqual": "4.19.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "5.4.274",
                     "lessThanOrEqual": "5.4.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "5.10.215",
                     "lessThanOrEqual": "5.10.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "5.15.154",
                     "lessThanOrEqual": "5.15.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "6.1.84",
                     "lessThanOrEqual": "6.1.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "6.6.24",
                     "lessThanOrEqual": "6.6.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "6.7.12",
                     "lessThanOrEqual": "6.7.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "6.8.3",
                     "lessThanOrEqual": "6.8.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "6.9",
                     "lessThanOrEqual": "*",
                     "status": "unaffected",
                     "versionType": "original_commit_for_fix"
                  }
               ]
            }
         ],
         "references": [
            {
               "url": "https://git.kernel.org/stable/c/4aa554832b9dc9e66249df75b8f447d87853e12e"
            },
            {
               "url": "https://git.kernel.org/stable/c/778c6ad40256f1c03244fc06d7cdf71f6b5e7310"
            },
            {
               "url": "https://git.kernel.org/stable/c/8f599ab6fabbca4c741107eade70722a98adfd9f"
            },
            {
               "url": "https://git.kernel.org/stable/c/f19b1023a3758f40791ec166038d6411c8894ae3"
            },
            {
               "url": "https://git.kernel.org/stable/c/142d87c958d9454c3cffa625fab56f3016e8f9f3"
            },
            {
               "url": "https://git.kernel.org/stable/c/fc99f4e2d2f1ce766c14e98463c2839194ae964f"
            },
            {
               "url": "https://git.kernel.org/stable/c/4b7c4fc60d6a46350fbe54f5dc937aeaa02e675e"
            },
            {
               "url": "https://git.kernel.org/stable/c/17772bbe9cfa972ea1ff827319f6e1340de76566"
            },
            {
               "url": "https://git.kernel.org/stable/c/723012cab779eee8228376754e22c6594229bf8f"
            }
         ],
         "title": "ubifs: Set page uptodate in the correct place",
         "x_generator": {
            "engine": "bippy-a5840b7849dd"
         }
      }
   },
   "cveMetadata": {
      "assignerOrgId": "f4215fc3-5b6b-47ff-a258-f7189bd81038",
      "cveID": "CVE-2024-35821",
      "requesterUserId": "gregkh@kernel.org",
      "serial": "1",
      "state": "PUBLISHED"
   },
   "dataType": "CVE_RECORD",
   "dataVersion": "5.0"
}
