GCVE Workshop - 22 September 2026 (14:00-18:00), Luxembourg Before The Vulnopticon Conference - Registration

CVE-2024-41051 (GCVE-0-2024-41051)

Vulnerability from cvelistv5 – Published: 2024-07-29 14:32 – Updated: 2026-08-05 11:35
VLAI
Title
cachefiles: wait for ondemand_object_worker to finish when dropping object
Summary
In the Linux kernel, the following vulnerability has been resolved: cachefiles: wait for ondemand_object_worker to finish when dropping object When queuing ondemand_object_worker() to re-open the object, cachefiles_object is not pinned. The cachefiles_object may be freed when the pending read request is completed intentionally and the related erofs is umounted. If ondemand_object_worker() runs after the object is freed, it will incur use-after-free problem as shown below. process A processs B process C process D cachefiles_ondemand_send_req() // send a read req X // wait for its completion // close ondemand fd cachefiles_ondemand_fd_release() // set object as CLOSE cachefiles_ondemand_daemon_read() // set object as REOPENING queue_work(fscache_wq, &info->ondemand_work) // close /dev/cachefiles cachefiles_daemon_release cachefiles_flush_reqs complete(&req->done) // read req X is completed // umount the erofs fs cachefiles_put_object() // object will be freed cachefiles_ondemand_deinit_obj_info() kmem_cache_free(object) // both info and object are freed ondemand_object_worker() When dropping an object, it is no longer necessary to reopen the object, so use cancel_work_sync() to cancel or wait for ondemand_object_worker() to finish.
SSVC
Exploitation: none Automatable: no Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2024-09-10 16:22 UTC
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: f17443d52d805c9a7fab5e67a4e8b973626fe1cd , < ec9289369259d982e735a71437e32e6b4035290c (git)
Affected: f740fd943bb1fbf79b7eaba3c71eb7536f437f51 , < d3179bae72b1b5e555ba839d6d9f40a350a4d78a (git)
Affected: 0a7e54c1959c0feb2de23397ec09c7692364313e , < b26525b2183632f16a3a4108fe6a4bfa8afac6ed (git)
Affected: 0a7e54c1959c0feb2de23397ec09c7692364313e , < 12e009d60852f7bce0afc373ca0b320f14150418 (git)
Affected: 6.1.95 , < 6.1.100 (semver)
Affected: 6.6.35 , < 6.6.41 (semver)
guessed Create a notification for this product.
Linux Linux Affected: 6.8
Unaffected: 0 , < 6.8 (semver)
Unaffected: 6.1.100 , ≤ 6.1.* (semver)
Unaffected: 6.6.41 , ≤ 6.6.* (semver)
Unaffected: 6.9.10 , ≤ 6.9.* (semver)
Unaffected: 6.10 , ≤ * (original_commit_for_fix)
guessed Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "adp": [
      {
        "providerMetadata": {
          "dateUpdated": "2025-11-03T21:59:52.818Z",
          "orgId": "af854a3a-2127-422b-91ae-364da2661108",
          "shortName": "CVE"
        },
        "references": [
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/ec9289369259d982e735a71437e32e6b4035290c"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/d3179bae72b1b5e555ba839d6d9f40a350a4d78a"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/b26525b2183632f16a3a4108fe6a4bfa8afac6ed"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/12e009d60852f7bce0afc373ca0b320f14150418"
          },
          {
            "url": "https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html"
          }
        ],
        "title": "CVE Program Container"
      },
      {
        "metrics": [
          {
            "other": {
              "content": {
                "id": "CVE-2024-41051",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "partial"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2024-09-10T16:22:41.369243Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2024-09-11T17:33:01.915Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      }
    ],
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "fs/cachefiles/ondemand.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "ec9289369259d982e735a71437e32e6b4035290c",
              "status": "affected",
              "version": "f17443d52d805c9a7fab5e67a4e8b973626fe1cd",
              "versionType": "git"
            },
            {
              "lessThan": "d3179bae72b1b5e555ba839d6d9f40a350a4d78a",
              "status": "affected",
              "version": "f740fd943bb1fbf79b7eaba3c71eb7536f437f51",
              "versionType": "git"
            },
            {
              "lessThan": "b26525b2183632f16a3a4108fe6a4bfa8afac6ed",
              "status": "affected",
              "version": "0a7e54c1959c0feb2de23397ec09c7692364313e",
              "versionType": "git"
            },
            {
              "lessThan": "12e009d60852f7bce0afc373ca0b320f14150418",
              "status": "affected",
              "version": "0a7e54c1959c0feb2de23397ec09c7692364313e",
              "versionType": "git"
            },
            {
              "lessThan": "6.1.100",
              "status": "affected",
              "version": "6.1.95",
              "versionType": "semver"
            },
            {
              "lessThan": "6.6.41",
              "status": "affected",
              "version": "6.6.35",
              "versionType": "semver"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "fs/cachefiles/ondemand.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.8"
            },
            {
              "lessThan": "6.8",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.100",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.41",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.9.*",
              "status": "unaffected",
              "version": "6.9.10",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.10",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.100",
                  "versionStartIncluding": "6.1.95",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.41",
                  "versionStartIncluding": "6.6.35",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.9.10",
                  "versionStartIncluding": "6.8",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.10",
                  "versionStartIncluding": "6.8",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\ncachefiles: wait for ondemand_object_worker to finish when dropping object\n\nWhen queuing ondemand_object_worker() to re-open the object,\ncachefiles_object is not pinned. The cachefiles_object may be freed when\nthe pending read request is completed intentionally and the related\nerofs is umounted. If ondemand_object_worker() runs after the object is\nfreed, it will incur use-after-free problem as shown below.\n\nprocess A  processs B  process C  process D\n\ncachefiles_ondemand_send_req()\n// send a read req X\n// wait for its completion\n\n           // close ondemand fd\n           cachefiles_ondemand_fd_release()\n           // set object as CLOSE\n\n                       cachefiles_ondemand_daemon_read()\n                       // set object as REOPENING\n                       queue_work(fscache_wq, \u0026info-\u003eondemand_work)\n\n                                // close /dev/cachefiles\n                                cachefiles_daemon_release\n                                cachefiles_flush_reqs\n                                complete(\u0026req-\u003edone)\n\n// read req X is completed\n// umount the erofs fs\ncachefiles_put_object()\n// object will be freed\ncachefiles_ondemand_deinit_obj_info()\nkmem_cache_free(object)\n                       // both info and object are freed\n                       ondemand_object_worker()\n\nWhen dropping an object, it is no longer necessary to reopen the object,\nso use cancel_work_sync() to cancel or wait for ondemand_object_worker()\nto finish."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 7.8,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:L - The vulnerable path is driven entirely by local filesystem activity \u2014 page-cache reads on an erofs-over-fscache mount generating `CACHEFILES_OP_READ` requests, plus the local `/dev/cachefiles` daemon fd and cache-withdrawal lifecycle. No remote peer data reaches `ondemand_object_worker()`.\nAC:L - The attacker supplies the decisive side of the race by keeping a continuous flood of uncached reads in flight on the fscache-backed mount, so a request is essentially always pending on a CLOSE-state object when a drop occurs, and can also saturate `fscache_wq` to widen the window before `ondemand_object_worker()` executes; heap grooming of kmalloc-64 to reclaim the freed `cachefiles_ondemand_info` is likewise fully attacker-controlled and retryable.\nPR:L - Reaching `cachefiles_ondemand_read()` requires only an unprivileged local user with read access to an erofs-over-fscache mount \u2014 `cachefiles_prepare_read()` performs no capability check \u2014 and the attacker never needs the daemon\u0027s CAP_SYS_ADMIN, which belongs to the victim side of the race.\nUI:N - No deliberate victim action is needed; the attacker\u0027s own file reads create the pending requests, and object withdrawal is routine automated lifecycle activity (container teardown/umount, daemon restart or crash, cache unbind) rather than a user being tricked into anything.\nS:U - The corruption and all its consequences stay within the kernel\u0027s own security authority; no VM, IOMMU, or sandbox boundary is crossed.\nC:H - The slab-use-after-free reads `info-\u003eobject` out of a reclaimed kmalloc-64 allocation and chains dereferences through `object-\u003ecookie` and `object-\u003evolume`, and `cachefiles_ondemand_init_open_req()` `memcpy()`s from those attacker-redirected pointers into a message that `cachefiles_ondemand_daemon_read()` copies to userspace \u2014 an arbitrary kernel-memory read primitive.\nI:H - The freed-object path performs attacker-addressable writes: `cachefiles_ondemand_set_object_close()` stores to `object-\u003eondemand-\u003estate`, `wake_up_all(\u0026cache-\u003edaemon_pollwq)` does spinlock and list manipulation on a controlled address, and `xas_store()` writes into a forged xarray \u2014 sufficient to build a write primitive and escalate privileges.\nA:H - Even without successful heap grooming, `ondemand_object_worker()` dereferences garbage from freed memory in workqueue context (and a still-queued work item leaves the workqueue list pointing into freed slab), producing the slab-use-after-free oops/panic described in the commit."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-05T11:35:01.418Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/ec9289369259d982e735a71437e32e6b4035290c"
        },
        {
          "url": "https://git.kernel.org/stable/c/d3179bae72b1b5e555ba839d6d9f40a350a4d78a"
        },
        {
          "url": "https://git.kernel.org/stable/c/b26525b2183632f16a3a4108fe6a4bfa8afac6ed"
        },
        {
          "url": "https://git.kernel.org/stable/c/12e009d60852f7bce0afc373ca0b320f14150418"
        }
      ],
      "title": "cachefiles: wait for ondemand_object_worker to finish when dropping object",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2024-41051",
    "datePublished": "2024-07-29T14:32:07.577Z",
    "dateReserved": "2024-07-12T12:17:45.626Z",
    "dateUpdated": "2026-08-05T11:35:01.418Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2024-41051",
      "date": "2026-09-16",
      "epss": "0.00275",
      "percentile": "0.19913"
    },
    "fkie_nvd": {
      "descriptions": "[{\"lang\": \"en\", \"value\": \"In the Linux kernel, the following vulnerability has been resolved:\\n\\ncachefiles: wait for ondemand_object_worker to finish when dropping object\\n\\nWhen queuing ondemand_object_worker() to re-open the object,\\ncachefiles_object is not pinned. The cachefiles_object may be freed when\\nthe pending read request is completed intentionally and the related\\nerofs is umounted. If ondemand_object_worker() runs after the object is\\nfreed, it will incur use-after-free problem as shown below.\\n\\nprocess A  processs B  process C  process D\\n\\ncachefiles_ondemand_send_req()\\n// send a read req X\\n// wait for its completion\\n\\n           // close ondemand fd\\n           cachefiles_ondemand_fd_release()\\n           // set object as CLOSE\\n\\n                       cachefiles_ondemand_daemon_read()\\n                       // set object as REOPENING\\n                       queue_work(fscache_wq, \u0026info-\u003eondemand_work)\\n\\n                                // close /dev/cachefiles\\n                                cachefiles_daemon_release\\n                                cachefiles_flush_reqs\\n                                complete(\u0026req-\u003edone)\\n\\n// read req X is completed\\n// umount the erofs fs\\ncachefiles_put_object()\\n// object will be freed\\ncachefiles_ondemand_deinit_obj_info()\\nkmem_cache_free(object)\\n                       // both info and object are freed\\n                       ondemand_object_worker()\\n\\nWhen dropping an object, it is no longer necessary to reopen the object,\\nso use cancel_work_sync() to cancel or wait for ondemand_object_worker()\\nto finish.\"}, {\"lang\": \"es\", \"value\": \"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: cachefiles: espere a que finalice ondemand_object_worker al soltar el objeto Al poner en cola ondemand_object_worker() para volver a abrir el objeto, cachefiles_object no est\\u00e1 fijado. El objeto cachefiles_object se puede liberar cuando la solicitud de lectura pendiente se completa intencionalmente y se desmontan los erofs relacionados. Si ondemand_object_worker() se ejecuta despu\\u00e9s de liberar el objeto, incurrir\\u00e1 en un problema de use after free como se muestra a continuaci\\u00f3n. proceso A procesos B proceso C proceso D cachefiles_ondemand_send_req() // env\\u00eda una solicitud de lectura X // espera a que se complete // cierra ondemand fd cachefiles_ondemand_fd_release() // establece el objeto como CERRAR cachefiles_ondemand_daemon_read() // establece el objeto como REAPERTURA queue_work(fscache_wq , \u0026amp;info-\u0026gt;ondemand_work) // cerrar /dev/cachefiles cachefiles_daemon_release cachefiles_flush_reqs complete(\u0026amp;req-\u0026gt;done) // leer la solicitud X est\\u00e1 completa // desmontar el erofs fs cachefiles_put_object() // el objeto ser\\u00e1 liberado cachefiles_ondemand_deinit_obj_info() kmem_cache_free(object ) // tanto la informaci\\u00f3n como el objeto se liberan ondemand_object_worker() Cuando se suelta un objeto, ya no es necesario volver a abrirlo, as\\u00ed que use cancel_work_sync() para cancelar o espere a que finalice ondemand_object_worker().\"}]",
      "id": "CVE-2024-41051",
      "lastModified": "2024-11-21T09:32:08.613",
      "published": "2024-07-29T15:15:13.327",
      "references": "[{\"url\": \"https://git.kernel.org/stable/c/12e009d60852f7bce0afc373ca0b320f14150418\", \"source\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}, {\"url\": \"https://git.kernel.org/stable/c/b26525b2183632f16a3a4108fe6a4bfa8afac6ed\", \"source\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}, {\"url\": \"https://git.kernel.org/stable/c/d3179bae72b1b5e555ba839d6d9f40a350a4d78a\", \"source\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}, {\"url\": \"https://git.kernel.org/stable/c/ec9289369259d982e735a71437e32e6b4035290c\", \"source\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}, {\"url\": \"https://git.kernel.org/stable/c/12e009d60852f7bce0afc373ca0b320f14150418\", \"source\": \"af854a3a-2127-422b-91ae-364da2661108\"}, {\"url\": \"https://git.kernel.org/stable/c/b26525b2183632f16a3a4108fe6a4bfa8afac6ed\", \"source\": \"af854a3a-2127-422b-91ae-364da2661108\"}, {\"url\": \"https://git.kernel.org/stable/c/d3179bae72b1b5e555ba839d6d9f40a350a4d78a\", \"source\": \"af854a3a-2127-422b-91ae-364da2661108\"}, {\"url\": \"https://git.kernel.org/stable/c/ec9289369259d982e735a71437e32e6b4035290c\", \"source\": \"af854a3a-2127-422b-91ae-364da2661108\"}]",
      "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "vulnStatus": "Awaiting Analysis"
    },
    "nvd": "{\"cve\":{\"id\":\"CVE-2024-41051\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2024-07-29T15:15:13.327\",\"lastModified\":\"2026-08-04T11:19:23.353\",\"vulnStatus\":\"Modified\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\ncachefiles: wait for ondemand_object_worker to finish when dropping object\\n\\nWhen queuing ondemand_object_worker() to re-open the object,\\ncachefiles_object is not pinned. The cachefiles_object may be freed when\\nthe pending read request is completed intentionally and the related\\nerofs is umounted. If ondemand_object_worker() runs after the object is\\nfreed, it will incur use-after-free problem as shown below.\\n\\nprocess A  processs B  process C  process D\\n\\ncachefiles_ondemand_send_req()\\n// send a read req X\\n// wait for its completion\\n\\n           // close ondemand fd\\n           cachefiles_ondemand_fd_release()\\n           // set object as CLOSE\\n\\n                       cachefiles_ondemand_daemon_read()\\n                       // set object as REOPENING\\n                       queue_work(fscache_wq, \u0026info-\u003eondemand_work)\\n\\n                                // close /dev/cachefiles\\n                                cachefiles_daemon_release\\n                                cachefiles_flush_reqs\\n                                complete(\u0026req-\u003edone)\\n\\n// read req X is completed\\n// umount the erofs fs\\ncachefiles_put_object()\\n// object will be freed\\ncachefiles_ondemand_deinit_obj_info()\\nkmem_cache_free(object)\\n                       // both info and object are freed\\n                       ondemand_object_worker()\\n\\nWhen dropping an object, it is no longer necessary to reopen the object,\\nso use cancel_work_sync() to cancel or wait for ondemand_object_worker()\\nto finish.\"},{\"lang\":\"es\",\"value\":\"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: cachefiles: espere a que finalice ondemand_object_worker al soltar el objeto Al poner en cola ondemand_object_worker() para volver a abrir el objeto, cachefiles_object no est\u00e1 fijado. El objeto cachefiles_object se puede liberar cuando la solicitud de lectura pendiente se completa intencionalmente y se desmontan los erofs relacionados. Si ondemand_object_worker() se ejecuta despu\u00e9s de liberar el objeto, incurrir\u00e1 en un problema de use after free como se muestra a continuaci\u00f3n. proceso A procesos B proceso C proceso D cachefiles_ondemand_send_req() // env\u00eda una solicitud de lectura X // espera a que se complete // cierra ondemand fd cachefiles_ondemand_fd_release() // establece el objeto como CERRAR cachefiles_ondemand_daemon_read() // establece el objeto como REAPERTURA queue_work(fscache_wq , \u0026amp;info-\u0026gt;ondemand_work) // cerrar /dev/cachefiles cachefiles_daemon_release cachefiles_flush_reqs complete(\u0026amp;req-\u0026gt;done) // leer la solicitud X est\u00e1 completa // desmontar el erofs fs cachefiles_put_object() // el objeto ser\u00e1 liberado cachefiles_ondemand_deinit_obj_info() kmem_cache_free(object ) // tanto la informaci\u00f3n como el objeto se liberan ondemand_object_worker() Cuando se suelta un objeto, ya no es necesario volver a abrirlo, as\u00ed que use cancel_work_sync() para cancelar o espere a que finalice ondemand_object_worker().\"}],\"affected\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"affectedData\":[{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"unaffected\",\"programFiles\":[\"fs/cachefiles/ondemand.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"f17443d52d805c9a7fab5e67a4e8b973626fe1cd\",\"lessThan\":\"ec9289369259d982e735a71437e32e6b4035290c\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"f740fd943bb1fbf79b7eaba3c71eb7536f437f51\",\"lessThan\":\"d3179bae72b1b5e555ba839d6d9f40a350a4d78a\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"0a7e54c1959c0feb2de23397ec09c7692364313e\",\"lessThan\":\"b26525b2183632f16a3a4108fe6a4bfa8afac6ed\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"0a7e54c1959c0feb2de23397ec09c7692364313e\",\"lessThan\":\"12e009d60852f7bce0afc373ca0b320f14150418\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"6.1.95\",\"lessThan\":\"6.1.100\",\"versionType\":\"semver\",\"status\":\"affected\"},{\"version\":\"6.6.35\",\"lessThan\":\"6.6.41\",\"versionType\":\"semver\",\"status\":\"affected\"}]},{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"affected\",\"programFiles\":[\"fs/cachefiles/ondemand.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"6.8\",\"status\":\"affected\"},{\"version\":\"0\",\"lessThan\":\"6.8\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.1.100\",\"lessThanOrEqual\":\"6.1.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.6.41\",\"lessThanOrEqual\":\"6.6.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.9.10\",\"lessThanOrEqual\":\"6.9.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.10\",\"lessThanOrEqual\":\"*\",\"versionType\":\"original_commit_for_fix\",\"status\":\"unaffected\"}]}]}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"type\":\"Secondary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H\",\"baseScore\":7.8,\"baseSeverity\":\"HIGH\",\"attackVector\":\"LOCAL\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"LOW\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"HIGH\",\"integrityImpact\":\"HIGH\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":1.8,\"impactScore\":5.9},{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H\",\"baseScore\":7.8,\"baseSeverity\":\"HIGH\",\"attackVector\":\"LOCAL\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"LOW\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"HIGH\",\"integrityImpact\":\"HIGH\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":1.8,\"impactScore\":5.9}],\"ssvcV203\":[{\"source\":\"134c704f-9b21-4f2e-91b3-4a467353bcc0\",\"ssvcData\":{\"timestamp\":\"2024-09-10T16:22:41.369243Z\",\"id\":\"CVE-2024-41051\",\"options\":[{\"exploitation\":\"none\"},{\"automatable\":\"no\"},{\"technicalImpact\":\"partial\"}],\"role\":\"CISA Coordinator\",\"version\":\"2.0.3\"}}]},\"weaknesses\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"description\":[{\"lang\":\"en\",\"value\":\"CWE-416\"}]}],\"configurations\":[{\"nodes\":[{\"operator\":\"OR\",\"negate\":false,\"cpeMatch\":[{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"6.1.95\",\"versionEndExcluding\":\"6.1.100\",\"matchCriteriaId\":\"9660509A-A7A9-4DF8-9C10-10EB2BE6B935\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"6.6.35\",\"versionEndExcluding\":\"6.6.41\",\"matchCriteriaId\":\"18E36DFA-0FEF-4794-B395-77264588DD12\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"6.8\",\"versionEndExcluding\":\"6.9.10\",\"matchCriteriaId\":\"6FAC1A24-181A-4DB7-801D-4BDF1B4E4116\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:6.10:rc1:*:*:*:*:*:*\",\"matchCriteriaId\":\"2EBB4392-5FA6-4DA9-9772-8F9C750109FA\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:6.10:rc2:*:*:*:*:*:*\",\"matchCriteriaId\":\"331C2F14-12C7-45D5-893D-8C52EE38EA10\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:6.10:rc3:*:*:*:*:*:*\",\"matchCriteriaId\":\"3173713D-909A-4DD3-9DD4-1E171EB057EE\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:6.10:rc4:*:*:*:*:*:*\",\"matchCriteriaId\":\"79F18AFA-40F7-43F0-BA30-7BDB65F918B9\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:6.10:rc5:*:*:*:*:*:*\",\"matchCriteriaId\":\"BD973AA4-A789-49BD-8D57-B2846935D3C7\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:6.10:rc6:*:*:*:*:*:*\",\"matchCriteriaId\":\"8F3E9E0C-AC3E-4967-AF80-6483E8AB0078\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:6.10:rc7:*:*:*:*:*:*\",\"matchCriteriaId\":\"11AF4CB9-F697-4EA4-8903-8F9417EFDA8E\"}]}]}],\"references\":[{\"url\":\"https://git.kernel.org/stable/c/12e009d60852f7bce0afc373ca0b320f14150418\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/b26525b2183632f16a3a4108fe6a4bfa8afac6ed\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/d3179bae72b1b5e555ba839d6d9f40a350a4d78a\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/ec9289369259d982e735a71437e32e6b4035290c\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/12e009d60852f7bce0afc373ca0b320f14150418\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/b26525b2183632f16a3a4108fe6a4bfa8afac6ed\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/d3179bae72b1b5e555ba839d6d9f40a350a4d78a\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/ec9289369259d982e735a71437e32e6b4035290c\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Patch\"]},{\"url\":\"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\"}]}}",
    "redhat_vex": {
      "aggregate_severity": "Moderate",
      "current_release_date": "2026-08-04T18:43:45+00:00",
      "cve": "CVE-2024-41051",
      "id": "CVE-2024-41051",
      "initial_release_date": "2024-07-29T00:00:00+00:00",
      "product_status:known_not_affected": "198",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: cachefiles: wait for ondemand_object_worker to finish when dropping object",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2024/cve-2024-41051.json",
      "version": "3"
    },
    "suse_vex": {
      "aggregate_severity": "moderate",
      "current_release_date": "2026-08-29T01:51:58Z",
      "cve": "CVE-2024-41051",
      "id": "CVE-2024-41051",
      "initial_release_date": "2024-08-06T02:01:44Z",
      "product_status:known_affected": "394",
      "product_status:known_not_affected": "320",
      "product_status:recommended": "355",
      "source": "SUSE CSAF VEX",
      "status": "interim",
      "title": "SUSE CVE CVE-2024-41051",
      "url": "https://ftp.suse.com/pub/projects/security/csaf-vex/cve-2024-41051.json",
      "version": "60"
    },
    "vulnrichment": {
      "containers": "{\"adp\": [{\"title\": \"CVE Program Container\", \"references\": [{\"url\": \"https://git.kernel.org/stable/c/ec9289369259d982e735a71437e32e6b4035290c\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/d3179bae72b1b5e555ba839d6d9f40a350a4d78a\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/b26525b2183632f16a3a4108fe6a4bfa8afac6ed\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/12e009d60852f7bce0afc373ca0b320f14150418\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html\"}], \"providerMetadata\": {\"orgId\": \"af854a3a-2127-422b-91ae-364da2661108\", \"shortName\": \"CVE\", \"dateUpdated\": \"2025-11-03T21:59:52.818Z\"}}, {\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2024-41051\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2024-09-10T16:22:41.369243Z\"}}}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2024-09-11T12:42:14.140Z\"}}], \"cna\": {\"title\": \"cachefiles: wait for ondemand_object_worker to finish when dropping object\", \"affected\": [{\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"f17443d52d805c9a7fab5e67a4e8b973626fe1cd\", \"lessThan\": \"ec9289369259d982e735a71437e32e6b4035290c\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"f740fd943bb1fbf79b7eaba3c71eb7536f437f51\", \"lessThan\": \"d3179bae72b1b5e555ba839d6d9f40a350a4d78a\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"0a7e54c1959c0feb2de23397ec09c7692364313e\", \"lessThan\": \"b26525b2183632f16a3a4108fe6a4bfa8afac6ed\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"0a7e54c1959c0feb2de23397ec09c7692364313e\", \"lessThan\": \"12e009d60852f7bce0afc373ca0b320f14150418\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"6.1.95\", \"lessThan\": \"6.1.100\", \"versionType\": \"semver\"}, {\"status\": \"affected\", \"version\": \"6.6.35\", \"lessThan\": \"6.6.41\", \"versionType\": \"semver\"}], \"programFiles\": [\"fs/cachefiles/ondemand.c\"], \"defaultStatus\": \"unaffected\"}, {\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"6.8\"}, {\"status\": \"unaffected\", \"version\": \"0\", \"lessThan\": \"6.8\", \"versionType\": \"semver\"}, {\"status\": \"unaffected\", \"version\": \"6.1.100\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.1.*\"}, {\"status\": \"unaffected\", \"version\": \"6.6.41\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.6.*\"}, {\"status\": \"unaffected\", \"version\": \"6.9.10\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.9.*\"}, {\"status\": \"unaffected\", \"version\": \"6.10\", \"versionType\": \"original_commit_for_fix\", \"lessThanOrEqual\": \"*\"}], \"programFiles\": [\"fs/cachefiles/ondemand.c\"], \"defaultStatus\": \"affected\"}], \"references\": [{\"url\": \"https://git.kernel.org/stable/c/ec9289369259d982e735a71437e32e6b4035290c\"}, {\"url\": \"https://git.kernel.org/stable/c/d3179bae72b1b5e555ba839d6d9f40a350a4d78a\"}, {\"url\": \"https://git.kernel.org/stable/c/b26525b2183632f16a3a4108fe6a4bfa8afac6ed\"}, {\"url\": \"https://git.kernel.org/stable/c/12e009d60852f7bce0afc373ca0b320f14150418\"}], \"x_generator\": {\"engine\": \"bippy-1.2.0\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"In the Linux kernel, the following vulnerability has been resolved:\\n\\ncachefiles: wait for ondemand_object_worker to finish when dropping object\\n\\nWhen queuing ondemand_object_worker() to re-open the object,\\ncachefiles_object is not pinned. The cachefiles_object may be freed when\\nthe pending read request is completed intentionally and the related\\nerofs is umounted. If ondemand_object_worker() runs after the object is\\nfreed, it will incur use-after-free problem as shown below.\\n\\nprocess A  processs B  process C  process D\\n\\ncachefiles_ondemand_send_req()\\n// send a read req X\\n// wait for its completion\\n\\n           // close ondemand fd\\n           cachefiles_ondemand_fd_release()\\n           // set object as CLOSE\\n\\n                       cachefiles_ondemand_daemon_read()\\n                       // set object as REOPENING\\n                       queue_work(fscache_wq, \u0026info-\u003eondemand_work)\\n\\n                                // close /dev/cachefiles\\n                                cachefiles_daemon_release\\n                                cachefiles_flush_reqs\\n                                complete(\u0026req-\u003edone)\\n\\n// read req X is completed\\n// umount the erofs fs\\ncachefiles_put_object()\\n// object will be freed\\ncachefiles_ondemand_deinit_obj_info()\\nkmem_cache_free(object)\\n                       // both info and object are freed\\n                       ondemand_object_worker()\\n\\nWhen dropping an object, it is no longer necessary to reopen the object,\\nso use cancel_work_sync() to cancel or wait for ondemand_object_worker()\\nto finish.\"}], \"cpeApplicability\": [{\"nodes\": [{\"negate\": false, \"cpeMatch\": [{\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.1.100\", \"versionStartIncluding\": \"6.1.95\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.6.41\", \"versionStartIncluding\": \"6.6.35\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.9.10\", \"versionStartIncluding\": \"6.8\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.10\", \"versionStartIncluding\": \"6.8\"}], \"operator\": \"OR\"}]}], \"providerMetadata\": {\"orgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"shortName\": \"Linux\", \"dateUpdated\": \"2026-05-23T15:51:44.883Z\"}}}",
      "cveMetadata": "{\"cveId\": \"CVE-2024-41051\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2026-05-23T15:51:44.883Z\", \"dateReserved\": \"2024-07-12T12:17:45.626Z\", \"assignerOrgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"datePublished\": \"2024-07-29T14:32:07.577Z\", \"assignerShortName\": \"Linux\"}",
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…