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

CVE-2024-41058 (GCVE-0-2024-41058)

Vulnerability from cvelistv5 – Published: 2024-07-29 14:57 – Updated: 2026-05-11 20:25
VLAI
Title
cachefiles: fix slab-use-after-free in fscache_withdraw_volume()
Summary
In the Linux kernel, the following vulnerability has been resolved: cachefiles: fix slab-use-after-free in fscache_withdraw_volume() We got the following issue in our fault injection stress test: ================================================================== BUG: KASAN: slab-use-after-free in fscache_withdraw_volume+0x2e1/0x370 Read of size 4 at addr ffff88810680be08 by task ondemand-04-dae/5798 CPU: 0 PID: 5798 Comm: ondemand-04-dae Not tainted 6.8.0-dirty #565 Call Trace: kasan_check_range+0xf6/0x1b0 fscache_withdraw_volume+0x2e1/0x370 cachefiles_withdraw_volume+0x31/0x50 cachefiles_withdraw_cache+0x3ad/0x900 cachefiles_put_unbind_pincount+0x1f6/0x250 cachefiles_daemon_release+0x13b/0x290 __fput+0x204/0xa00 task_work_run+0x139/0x230 Allocated by task 5820: __kmalloc+0x1df/0x4b0 fscache_alloc_volume+0x70/0x600 __fscache_acquire_volume+0x1c/0x610 erofs_fscache_register_volume+0x96/0x1a0 erofs_fscache_register_fs+0x49a/0x690 erofs_fc_fill_super+0x6c0/0xcc0 vfs_get_super+0xa9/0x140 vfs_get_tree+0x8e/0x300 do_new_mount+0x28c/0x580 [...] Freed by task 5820: kfree+0xf1/0x2c0 fscache_put_volume.part.0+0x5cb/0x9e0 erofs_fscache_unregister_fs+0x157/0x1b0 erofs_kill_sb+0xd9/0x1c0 deactivate_locked_super+0xa3/0x100 vfs_get_super+0x105/0x140 vfs_get_tree+0x8e/0x300 do_new_mount+0x28c/0x580 [...] ================================================================== Following is the process that triggers the issue: mount failed | daemon exit ------------------------------------------------------------ deactivate_locked_super cachefiles_daemon_release erofs_kill_sb erofs_fscache_unregister_fs fscache_relinquish_volume __fscache_relinquish_volume fscache_put_volume(fscache_volume, fscache_volume_put_relinquish) zero = __refcount_dec_and_test(&fscache_volume->ref, &ref); cachefiles_put_unbind_pincount cachefiles_daemon_unbind cachefiles_withdraw_cache cachefiles_withdraw_volumes list_del_init(&volume->cache_link) fscache_free_volume(fscache_volume) cache->ops->free_volume cachefiles_free_volume list_del_init(&cachefiles_volume->cache_link); kfree(fscache_volume) cachefiles_withdraw_volume fscache_withdraw_volume fscache_volume->n_accesses // fscache_volume UAF !!! The fscache_volume in cache->volumes must not have been freed yet, but its reference count may be 0. So use the new fscache_try_get_volume() helper function try to get its reference count. If the reference count of fscache_volume is 0, fscache_put_volume() is freeing it, so wait for it to be removed from cache->volumes. If its reference count is not 0, call cachefiles_withdraw_volume() with reference count protection to avoid the above issue.
Severity
No CVSS data available.
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: fe2140e2f57fef8562e0f9b7cd447d2b08dc2f35 , < 90f17e47f1e209c6a3c92a1d038a0a80c95c460e (git)
Affected: fe2140e2f57fef8562e0f9b7cd447d2b08dc2f35 , < 9dd7f5663899ea13a6a73216106d9c13c37453e3 (git)
Affected: fe2140e2f57fef8562e0f9b7cd447d2b08dc2f35 , < 38b88d544216f806d93a273a62ff8ebe82254003 (git)
Affected: fe2140e2f57fef8562e0f9b7cd447d2b08dc2f35 , < 522018a0de6b6fcce60c04f86dfc5f0e4b6a1b36 (git)
guessed Create a notification for this product.
Linux Linux Affected: 5.17
Unaffected: 0 , < 5.17 (semver)
Unaffected: 6.1.101 , ≤ 6.1.* (semver)
Unaffected: 6.6.42 , ≤ 6.6.* (semver)
Unaffected: 6.9.11 , ≤ 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:58.919Z",
          "orgId": "af854a3a-2127-422b-91ae-364da2661108",
          "shortName": "CVE"
        },
        "references": [
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/90f17e47f1e209c6a3c92a1d038a0a80c95c460e"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/9dd7f5663899ea13a6a73216106d9c13c37453e3"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/38b88d544216f806d93a273a62ff8ebe82254003"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/522018a0de6b6fcce60c04f86dfc5f0e4b6a1b36"
          },
          {
            "url": "https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html"
          }
        ],
        "title": "CVE Program Container"
      },
      {
        "metrics": [
          {
            "other": {
              "content": {
                "id": "CVE-2024-41058",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "partial"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2024-09-10T16:22:18.541006Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2024-09-11T17:34:01.669Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      }
    ],
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "fs/cachefiles/cache.c",
            "include/trace/events/fscache.h"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "90f17e47f1e209c6a3c92a1d038a0a80c95c460e",
              "status": "affected",
              "version": "fe2140e2f57fef8562e0f9b7cd447d2b08dc2f35",
              "versionType": "git"
            },
            {
              "lessThan": "9dd7f5663899ea13a6a73216106d9c13c37453e3",
              "status": "affected",
              "version": "fe2140e2f57fef8562e0f9b7cd447d2b08dc2f35",
              "versionType": "git"
            },
            {
              "lessThan": "38b88d544216f806d93a273a62ff8ebe82254003",
              "status": "affected",
              "version": "fe2140e2f57fef8562e0f9b7cd447d2b08dc2f35",
              "versionType": "git"
            },
            {
              "lessThan": "522018a0de6b6fcce60c04f86dfc5f0e4b6a1b36",
              "status": "affected",
              "version": "fe2140e2f57fef8562e0f9b7cd447d2b08dc2f35",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "fs/cachefiles/cache.c",
            "include/trace/events/fscache.h"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "5.17"
            },
            {
              "lessThan": "5.17",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.101",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.42",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.9.*",
              "status": "unaffected",
              "version": "6.9.11",
              "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.101",
                  "versionStartIncluding": "5.17",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.42",
                  "versionStartIncluding": "5.17",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.9.11",
                  "versionStartIncluding": "5.17",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.10",
                  "versionStartIncluding": "5.17",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\ncachefiles: fix slab-use-after-free in fscache_withdraw_volume()\n\nWe got the following issue in our fault injection stress test:\n\n==================================================================\nBUG: KASAN: slab-use-after-free in fscache_withdraw_volume+0x2e1/0x370\nRead of size 4 at addr ffff88810680be08 by task ondemand-04-dae/5798\n\nCPU: 0 PID: 5798 Comm: ondemand-04-dae Not tainted 6.8.0-dirty #565\nCall Trace:\n kasan_check_range+0xf6/0x1b0\n fscache_withdraw_volume+0x2e1/0x370\n cachefiles_withdraw_volume+0x31/0x50\n cachefiles_withdraw_cache+0x3ad/0x900\n cachefiles_put_unbind_pincount+0x1f6/0x250\n cachefiles_daemon_release+0x13b/0x290\n __fput+0x204/0xa00\n task_work_run+0x139/0x230\n\nAllocated by task 5820:\n __kmalloc+0x1df/0x4b0\n fscache_alloc_volume+0x70/0x600\n __fscache_acquire_volume+0x1c/0x610\n erofs_fscache_register_volume+0x96/0x1a0\n erofs_fscache_register_fs+0x49a/0x690\n erofs_fc_fill_super+0x6c0/0xcc0\n vfs_get_super+0xa9/0x140\n vfs_get_tree+0x8e/0x300\n do_new_mount+0x28c/0x580\n [...]\n\nFreed by task 5820:\n kfree+0xf1/0x2c0\n fscache_put_volume.part.0+0x5cb/0x9e0\n erofs_fscache_unregister_fs+0x157/0x1b0\n erofs_kill_sb+0xd9/0x1c0\n deactivate_locked_super+0xa3/0x100\n vfs_get_super+0x105/0x140\n vfs_get_tree+0x8e/0x300\n do_new_mount+0x28c/0x580\n [...]\n==================================================================\n\nFollowing is the process that triggers the issue:\n\n        mount failed         |         daemon exit\n------------------------------------------------------------\n deactivate_locked_super        cachefiles_daemon_release\n  erofs_kill_sb\n   erofs_fscache_unregister_fs\n    fscache_relinquish_volume\n     __fscache_relinquish_volume\n      fscache_put_volume(fscache_volume, fscache_volume_put_relinquish)\n       zero = __refcount_dec_and_test(\u0026fscache_volume-\u003eref, \u0026ref);\n                                 cachefiles_put_unbind_pincount\n                                  cachefiles_daemon_unbind\n                                   cachefiles_withdraw_cache\n                                    cachefiles_withdraw_volumes\n                                     list_del_init(\u0026volume-\u003ecache_link)\n       fscache_free_volume(fscache_volume)\n        cache-\u003eops-\u003efree_volume\n         cachefiles_free_volume\n          list_del_init(\u0026cachefiles_volume-\u003ecache_link);\n        kfree(fscache_volume)\n                                     cachefiles_withdraw_volume\n                                      fscache_withdraw_volume\n                                       fscache_volume-\u003en_accesses\n                                       // fscache_volume UAF !!!\n\nThe fscache_volume in cache-\u003evolumes must not have been freed yet, but its\nreference count may be 0. So use the new fscache_try_get_volume() helper\nfunction try to get its reference count.\n\nIf the reference count of fscache_volume is 0, fscache_put_volume() is\nfreeing it, so wait for it to be removed from cache-\u003evolumes.\n\nIf its reference count is not 0, call cachefiles_withdraw_volume() with\nreference count protection to avoid the above issue."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-05-11T20:25:23.308Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/90f17e47f1e209c6a3c92a1d038a0a80c95c460e"
        },
        {
          "url": "https://git.kernel.org/stable/c/9dd7f5663899ea13a6a73216106d9c13c37453e3"
        },
        {
          "url": "https://git.kernel.org/stable/c/38b88d544216f806d93a273a62ff8ebe82254003"
        },
        {
          "url": "https://git.kernel.org/stable/c/522018a0de6b6fcce60c04f86dfc5f0e4b6a1b36"
        }
      ],
      "title": "cachefiles: fix slab-use-after-free in fscache_withdraw_volume()",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2024-41058",
    "datePublished": "2024-07-29T14:57:20.894Z",
    "dateReserved": "2024-07-12T12:17:45.627Z",
    "dateUpdated": "2026-05-11T20:25:23.308Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2024-41058",
      "date": "2026-09-16",
      "epss": "0.00281",
      "percentile": "0.20657"
    },
    "fkie_nvd": {
      "configurations": "[{\"nodes\": [{\"operator\": \"OR\", \"negate\": false, \"cpeMatch\": [{\"vulnerable\": true, \"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"versionStartIncluding\": \"5.17\", \"versionEndExcluding\": \"6.1.101\", \"matchCriteriaId\": \"DB356B3F-4040-49B4-8BB9-E2643A2E9B13\"}, {\"vulnerable\": true, \"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"versionStartIncluding\": \"6.2\", \"versionEndExcluding\": \"6.6.42\", \"matchCriteriaId\": \"972274A2-D688-4C37-BE42-689B58B4C225\"}, {\"vulnerable\": true, \"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"versionStartIncluding\": \"6.7\", \"versionEndExcluding\": \"6.9.11\", \"matchCriteriaId\": \"01E300B3-8B39-4A2D-8B03-4631433D3915\"}]}]}]",
      "descriptions": "[{\"lang\": \"en\", \"value\": \"In the Linux kernel, the following vulnerability has been resolved:\\n\\ncachefiles: fix slab-use-after-free in fscache_withdraw_volume()\\n\\nWe got the following issue in our fault injection stress test:\\n\\n==================================================================\\nBUG: KASAN: slab-use-after-free in fscache_withdraw_volume+0x2e1/0x370\\nRead of size 4 at addr ffff88810680be08 by task ondemand-04-dae/5798\\n\\nCPU: 0 PID: 5798 Comm: ondemand-04-dae Not tainted 6.8.0-dirty #565\\nCall Trace:\\n kasan_check_range+0xf6/0x1b0\\n fscache_withdraw_volume+0x2e1/0x370\\n cachefiles_withdraw_volume+0x31/0x50\\n cachefiles_withdraw_cache+0x3ad/0x900\\n cachefiles_put_unbind_pincount+0x1f6/0x250\\n cachefiles_daemon_release+0x13b/0x290\\n __fput+0x204/0xa00\\n task_work_run+0x139/0x230\\n\\nAllocated by task 5820:\\n __kmalloc+0x1df/0x4b0\\n fscache_alloc_volume+0x70/0x600\\n __fscache_acquire_volume+0x1c/0x610\\n erofs_fscache_register_volume+0x96/0x1a0\\n erofs_fscache_register_fs+0x49a/0x690\\n erofs_fc_fill_super+0x6c0/0xcc0\\n vfs_get_super+0xa9/0x140\\n vfs_get_tree+0x8e/0x300\\n do_new_mount+0x28c/0x580\\n [...]\\n\\nFreed by task 5820:\\n kfree+0xf1/0x2c0\\n fscache_put_volume.part.0+0x5cb/0x9e0\\n erofs_fscache_unregister_fs+0x157/0x1b0\\n erofs_kill_sb+0xd9/0x1c0\\n deactivate_locked_super+0xa3/0x100\\n vfs_get_super+0x105/0x140\\n vfs_get_tree+0x8e/0x300\\n do_new_mount+0x28c/0x580\\n [...]\\n==================================================================\\n\\nFollowing is the process that triggers the issue:\\n\\n        mount failed         |         daemon exit\\n------------------------------------------------------------\\n deactivate_locked_super        cachefiles_daemon_release\\n  erofs_kill_sb\\n   erofs_fscache_unregister_fs\\n    fscache_relinquish_volume\\n     __fscache_relinquish_volume\\n      fscache_put_volume(fscache_volume, fscache_volume_put_relinquish)\\n       zero = __refcount_dec_and_test(\u0026fscache_volume-\u003eref, \u0026ref);\\n                                 cachefiles_put_unbind_pincount\\n                                  cachefiles_daemon_unbind\\n                                   cachefiles_withdraw_cache\\n                                    cachefiles_withdraw_volumes\\n                                     list_del_init(\u0026volume-\u003ecache_link)\\n       fscache_free_volume(fscache_volume)\\n        cache-\u003eops-\u003efree_volume\\n         cachefiles_free_volume\\n          list_del_init(\u0026cachefiles_volume-\u003ecache_link);\\n        kfree(fscache_volume)\\n                                     cachefiles_withdraw_volume\\n                                      fscache_withdraw_volume\\n                                       fscache_volume-\u003en_accesses\\n                                       // fscache_volume UAF !!!\\n\\nThe fscache_volume in cache-\u003evolumes must not have been freed yet, but its\\nreference count may be 0. So use the new fscache_try_get_volume() helper\\nfunction try to get its reference count.\\n\\nIf the reference count of fscache_volume is 0, fscache_put_volume() is\\nfreeing it, so wait for it to be removed from cache-\u003evolumes.\\n\\nIf its reference count is not 0, call cachefiles_withdraw_volume() with\\nreference count protection to avoid the above issue.\"}, {\"lang\": \"es\", \"value\": \"En el kernel de Linux, se resolvi\\u00f3 la siguiente vulnerabilidad: cachefiles: fix slab-use-after-free in fscache_withdraw_volume() Obtuvimos el siguiente problema en nuestra prueba de estr\\u00e9s de inyecci\\u00f3n defallos: ============ ==================================================== ==== ERROR: KASAN: slab-use-after-free en fscache_withdraw_volume+0x2e1/0x370 Lectura de tama\\u00f1o 4 en la direcci\\u00f3n ffff88810680be08 por tarea ondemand-04-dae/5798 CPU: 0 PID: 5798 Comm: ondemand-04-dae No contaminado 6.8.0-dirty #565 Seguimiento de llamadas: kasan_check_range+0xf6/0x1b0 fscache_withdraw_volume+0x2e1/0x370 cachefiles_withdraw_volume+0x31/0x50 cachefiles_withdraw_cache+0x3ad/0x900 cachefiles_put_unbind_pincount+0x1f6/0x25 0 cachefiles_daemon_release+0x13b/0x290 __fput+0x204/0xa00 task_work_run+0x139 /0x230 Asignado por la tarea 5820: __kmalloc+0x1df/0x4b0 fscache_alloc_volume+0x70/0x600 __fscache_acquire_volume+0x1c/0x610 erofs_fscache_register_volume+0x96/0x1a0 erofs_fscache_register_fs+0x49a/0 x690 erofs_fc_fill_super+0x6c0/0xcc0 vfs_get_super+0xa9/0x140 vfs_get_tree+0x8e/0x300 do_new_mount+0x28c /0x580 [...] Liberado por la tarea 5820: kfree+0xf1/0x2c0 fscache_put_volume.part.0+0x5cb/0x9e0 erofs_fscache_unregister_fs+0x157/0x1b0 erofs_kill_sb+0xd9/0x1c0 deactivate_locked_super+0xa3/0x100 _super+0x105/0x140 vfs_get_tree+0x8e/ 0x300 do_new_mount+0x28c/0x580 [...] ======================================== =========================== El siguiente es el proceso que desencadena el problema: montaje fallido | salida del daemon ------------------------------------------------ ------------ deactivate_locked_super cachefiles_daemon_release erofs_kill_sb erofs_fscache_unregister_fs fscache_relinquish_volume __fscache_relinquish_volume fscache_put_volume(fscache_volume, fscache_volume_put_relinquish) zero = __refcount_dec_and_test(\u0026amp;fscache_volume-\u0026gt;ref, \u0026amp;ref); cachefiles_put_unbind_pincount cachefiles_daemon_unbind cachefiles_withdraw_cache cachefiles_withdraw_volumes list_del_init(\u0026amp;volume-\u0026gt;cache_link) fscache_free_volume(fscache_volume) cache-\u0026gt;ops-\u0026gt;free_volume cachefiles_free_volume list_del_init(\u0026amp;cachefiles_volume-\u0026gt;cache_link); kfree(fscache_volume) cachefiles_withdraw_volume fscache_withdraw_volume fscache_volume-\u0026gt;n_accesses // fscache_volume UAF !!! El fscache_volume en cache-\u0026gt;volumes no debe haberse liberado todav\\u00eda, pero su recuento de referencias puede ser 0. Por lo tanto, utilice la nueva funci\\u00f3n auxiliar fscache_try_get_volume() para intentar obtener su recuento de referencias. Si el recuento de referencia de fscache_volume es 0, fscache_put_volume() lo est\\u00e1 liberando, as\\u00ed que espere a que se elimine de cach\\u00e9-\u0026gt;vol\\u00famenes. Si su recuento de referencias no es 0, llame a cachefiles_withdraw_volume() con protecci\\u00f3n de recuento de referencias para evitar el problema anterior.\"}]",
      "id": "CVE-2024-41058",
      "lastModified": "2024-11-21T09:32:09.537",
      "metrics": "{\"cvssMetricV31\": [{\"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}]}",
      "published": "2024-07-29T15:15:13.847",
      "references": "[{\"url\": \"https://git.kernel.org/stable/c/38b88d544216f806d93a273a62ff8ebe82254003\", \"source\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"tags\": [\"Patch\"]}, {\"url\": \"https://git.kernel.org/stable/c/522018a0de6b6fcce60c04f86dfc5f0e4b6a1b36\", \"source\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"tags\": [\"Patch\"]}, {\"url\": \"https://git.kernel.org/stable/c/90f17e47f1e209c6a3c92a1d038a0a80c95c460e\", \"source\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"tags\": [\"Patch\"]}, {\"url\": \"https://git.kernel.org/stable/c/9dd7f5663899ea13a6a73216106d9c13c37453e3\", \"source\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"tags\": [\"Patch\"]}, {\"url\": \"https://git.kernel.org/stable/c/38b88d544216f806d93a273a62ff8ebe82254003\", \"source\": \"af854a3a-2127-422b-91ae-364da2661108\", \"tags\": [\"Patch\"]}, {\"url\": \"https://git.kernel.org/stable/c/522018a0de6b6fcce60c04f86dfc5f0e4b6a1b36\", \"source\": \"af854a3a-2127-422b-91ae-364da2661108\", \"tags\": [\"Patch\"]}, {\"url\": \"https://git.kernel.org/stable/c/90f17e47f1e209c6a3c92a1d038a0a80c95c460e\", \"source\": \"af854a3a-2127-422b-91ae-364da2661108\", \"tags\": [\"Patch\"]}, {\"url\": \"https://git.kernel.org/stable/c/9dd7f5663899ea13a6a73216106d9c13c37453e3\", \"source\": \"af854a3a-2127-422b-91ae-364da2661108\", \"tags\": [\"Patch\"]}]",
      "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "vulnStatus": "Modified",
      "weaknesses": "[{\"source\": \"nvd@nist.gov\", \"type\": \"Primary\", \"description\": [{\"lang\": \"en\", \"value\": \"CWE-416\"}]}]"
    },
    "microsoft_vex": {
      "current_release_date": "2026-02-18T14:52:04.000Z",
      "cve": "CVE-2024-41058",
      "id": "msrc_CVE-2024-41058",
      "initial_release_date": "2024-07-01T07:00:00.000Z",
      "product_status:fixed": "2",
      "product_status:known_affected": "2",
      "source": "Microsoft CSAF VEX",
      "status": "final",
      "title": "cachefiles: fix slab-use-after-free in fscache_withdraw_volume()",
      "url": "https://msrc.microsoft.com/csaf/vex/2024/msrc_cve-2024-41058.json",
      "version": "2"
    },
    "nvd": "{\"cve\":{\"id\":\"CVE-2024-41058\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2024-07-29T15:15:13.847\",\"lastModified\":\"2026-06-17T07:47:11.263\",\"vulnStatus\":\"Modified\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\ncachefiles: fix slab-use-after-free in fscache_withdraw_volume()\\n\\nWe got the following issue in our fault injection stress test:\\n\\n==================================================================\\nBUG: KASAN: slab-use-after-free in fscache_withdraw_volume+0x2e1/0x370\\nRead of size 4 at addr ffff88810680be08 by task ondemand-04-dae/5798\\n\\nCPU: 0 PID: 5798 Comm: ondemand-04-dae Not tainted 6.8.0-dirty #565\\nCall Trace:\\n kasan_check_range+0xf6/0x1b0\\n fscache_withdraw_volume+0x2e1/0x370\\n cachefiles_withdraw_volume+0x31/0x50\\n cachefiles_withdraw_cache+0x3ad/0x900\\n cachefiles_put_unbind_pincount+0x1f6/0x250\\n cachefiles_daemon_release+0x13b/0x290\\n __fput+0x204/0xa00\\n task_work_run+0x139/0x230\\n\\nAllocated by task 5820:\\n __kmalloc+0x1df/0x4b0\\n fscache_alloc_volume+0x70/0x600\\n __fscache_acquire_volume+0x1c/0x610\\n erofs_fscache_register_volume+0x96/0x1a0\\n erofs_fscache_register_fs+0x49a/0x690\\n erofs_fc_fill_super+0x6c0/0xcc0\\n vfs_get_super+0xa9/0x140\\n vfs_get_tree+0x8e/0x300\\n do_new_mount+0x28c/0x580\\n [...]\\n\\nFreed by task 5820:\\n kfree+0xf1/0x2c0\\n fscache_put_volume.part.0+0x5cb/0x9e0\\n erofs_fscache_unregister_fs+0x157/0x1b0\\n erofs_kill_sb+0xd9/0x1c0\\n deactivate_locked_super+0xa3/0x100\\n vfs_get_super+0x105/0x140\\n vfs_get_tree+0x8e/0x300\\n do_new_mount+0x28c/0x580\\n [...]\\n==================================================================\\n\\nFollowing is the process that triggers the issue:\\n\\n        mount failed         |         daemon exit\\n------------------------------------------------------------\\n deactivate_locked_super        cachefiles_daemon_release\\n  erofs_kill_sb\\n   erofs_fscache_unregister_fs\\n    fscache_relinquish_volume\\n     __fscache_relinquish_volume\\n      fscache_put_volume(fscache_volume, fscache_volume_put_relinquish)\\n       zero = __refcount_dec_and_test(\u0026fscache_volume-\u003eref, \u0026ref);\\n                                 cachefiles_put_unbind_pincount\\n                                  cachefiles_daemon_unbind\\n                                   cachefiles_withdraw_cache\\n                                    cachefiles_withdraw_volumes\\n                                     list_del_init(\u0026volume-\u003ecache_link)\\n       fscache_free_volume(fscache_volume)\\n        cache-\u003eops-\u003efree_volume\\n         cachefiles_free_volume\\n          list_del_init(\u0026cachefiles_volume-\u003ecache_link);\\n        kfree(fscache_volume)\\n                                     cachefiles_withdraw_volume\\n                                      fscache_withdraw_volume\\n                                       fscache_volume-\u003en_accesses\\n                                       // fscache_volume UAF !!!\\n\\nThe fscache_volume in cache-\u003evolumes must not have been freed yet, but its\\nreference count may be 0. So use the new fscache_try_get_volume() helper\\nfunction try to get its reference count.\\n\\nIf the reference count of fscache_volume is 0, fscache_put_volume() is\\nfreeing it, so wait for it to be removed from cache-\u003evolumes.\\n\\nIf its reference count is not 0, call cachefiles_withdraw_volume() with\\nreference count protection to avoid the above issue.\"},{\"lang\":\"es\",\"value\":\"En el kernel de Linux, se resolvi\u00f3 la siguiente vulnerabilidad: cachefiles: fix slab-use-after-free in fscache_withdraw_volume() Obtuvimos el siguiente problema en nuestra prueba de estr\u00e9s de inyecci\u00f3n defallos: ============ ==================================================== ==== ERROR: KASAN: slab-use-after-free en fscache_withdraw_volume+0x2e1/0x370 Lectura de tama\u00f1o 4 en la direcci\u00f3n ffff88810680be08 por tarea ondemand-04-dae/5798 CPU: 0 PID: 5798 Comm: ondemand-04-dae No contaminado 6.8.0-dirty #565 Seguimiento de llamadas: kasan_check_range+0xf6/0x1b0 fscache_withdraw_volume+0x2e1/0x370 cachefiles_withdraw_volume+0x31/0x50 cachefiles_withdraw_cache+0x3ad/0x900 cachefiles_put_unbind_pincount+0x1f6/0x25 0 cachefiles_daemon_release+0x13b/0x290 __fput+0x204/0xa00 task_work_run+0x139 /0x230 Asignado por la tarea 5820: __kmalloc+0x1df/0x4b0 fscache_alloc_volume+0x70/0x600 __fscache_acquire_volume+0x1c/0x610 erofs_fscache_register_volume+0x96/0x1a0 erofs_fscache_register_fs+0x49a/0 x690 erofs_fc_fill_super+0x6c0/0xcc0 vfs_get_super+0xa9/0x140 vfs_get_tree+0x8e/0x300 do_new_mount+0x28c /0x580 [...] Liberado por la tarea 5820: kfree+0xf1/0x2c0 fscache_put_volume.part.0+0x5cb/0x9e0 erofs_fscache_unregister_fs+0x157/0x1b0 erofs_kill_sb+0xd9/0x1c0 deactivate_locked_super+0xa3/0x100 _super+0x105/0x140 vfs_get_tree+0x8e/ 0x300 do_new_mount+0x28c/0x580 [...] ======================================== =========================== El siguiente es el proceso que desencadena el problema: montaje fallido | salida del daemon ------------------------------------------------ ------------ deactivate_locked_super cachefiles_daemon_release erofs_kill_sb erofs_fscache_unregister_fs fscache_relinquish_volume __fscache_relinquish_volume fscache_put_volume(fscache_volume, fscache_volume_put_relinquish) zero = __refcount_dec_and_test(\u0026amp;fscache_volume-\u0026gt;ref, \u0026amp;ref); cachefiles_put_unbind_pincount cachefiles_daemon_unbind cachefiles_withdraw_cache cachefiles_withdraw_volumes list_del_init(\u0026amp;volume-\u0026gt;cache_link) fscache_free_volume(fscache_volume) cache-\u0026gt;ops-\u0026gt;free_volume cachefiles_free_volume list_del_init(\u0026amp;cachefiles_volume-\u0026gt;cache_link); kfree(fscache_volume) cachefiles_withdraw_volume fscache_withdraw_volume fscache_volume-\u0026gt;n_accesses // fscache_volume UAF !!! El fscache_volume en cache-\u0026gt;volumes no debe haberse liberado todav\u00eda, pero su recuento de referencias puede ser 0. Por lo tanto, utilice la nueva funci\u00f3n auxiliar fscache_try_get_volume() para intentar obtener su recuento de referencias. Si el recuento de referencia de fscache_volume es 0, fscache_put_volume() lo est\u00e1 liberando, as\u00ed que espere a que se elimine de cach\u00e9-\u0026gt;vol\u00famenes. Si su recuento de referencias no es 0, llame a cachefiles_withdraw_volume() con protecci\u00f3n de recuento de referencias para evitar el problema anterior.\"}],\"affected\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"affectedData\":[{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"unaffected\",\"programFiles\":[\"fs/cachefiles/cache.c\",\"include/trace/events/fscache.h\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"fe2140e2f57fef8562e0f9b7cd447d2b08dc2f35\",\"lessThan\":\"90f17e47f1e209c6a3c92a1d038a0a80c95c460e\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"fe2140e2f57fef8562e0f9b7cd447d2b08dc2f35\",\"lessThan\":\"9dd7f5663899ea13a6a73216106d9c13c37453e3\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"fe2140e2f57fef8562e0f9b7cd447d2b08dc2f35\",\"lessThan\":\"38b88d544216f806d93a273a62ff8ebe82254003\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"fe2140e2f57fef8562e0f9b7cd447d2b08dc2f35\",\"lessThan\":\"522018a0de6b6fcce60c04f86dfc5f0e4b6a1b36\",\"versionType\":\"git\",\"status\":\"affected\"}]},{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"affected\",\"programFiles\":[\"fs/cachefiles/cache.c\",\"include/trace/events/fscache.h\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"5.17\",\"status\":\"affected\"},{\"version\":\"0\",\"lessThan\":\"5.17\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.1.101\",\"lessThanOrEqual\":\"6.1.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.6.42\",\"lessThanOrEqual\":\"6.6.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.9.11\",\"lessThanOrEqual\":\"6.9.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.10\",\"lessThanOrEqual\":\"*\",\"versionType\":\"original_commit_for_fix\",\"status\":\"unaffected\"}]}]}],\"metrics\":{\"cvssMetricV31\":[{\"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:18.541006Z\",\"id\":\"CVE-2024-41058\",\"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\":\"5.17\",\"versionEndExcluding\":\"6.1.101\",\"matchCriteriaId\":\"DB356B3F-4040-49B4-8BB9-E2643A2E9B13\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"6.2\",\"versionEndExcluding\":\"6.6.42\",\"matchCriteriaId\":\"972274A2-D688-4C37-BE42-689B58B4C225\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"6.7\",\"versionEndExcluding\":\"6.9.11\",\"matchCriteriaId\":\"01E300B3-8B39-4A2D-8B03-4631433D3915\"}]}]}],\"references\":[{\"url\":\"https://git.kernel.org/stable/c/38b88d544216f806d93a273a62ff8ebe82254003\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/522018a0de6b6fcce60c04f86dfc5f0e4b6a1b36\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/90f17e47f1e209c6a3c92a1d038a0a80c95c460e\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/9dd7f5663899ea13a6a73216106d9c13c37453e3\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/38b88d544216f806d93a273a62ff8ebe82254003\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/522018a0de6b6fcce60c04f86dfc5f0e4b6a1b36\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/90f17e47f1e209c6a3c92a1d038a0a80c95c460e\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/9dd7f5663899ea13a6a73216106d9c13c37453e3\",\"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-06-28T08:05:29+00:00",
      "cve": "CVE-2024-41058",
      "id": "CVE-2024-41058",
      "initial_release_date": "2024-07-29T00:00:00+00:00",
      "product_status:fixed": "280",
      "product_status:known_affected": "64",
      "product_status:known_not_affected": "56",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: cachefiles: fix slab-use-after-free in fscache_withdraw_volume()",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2024/cve-2024-41058.json",
      "version": "3"
    },
    "suse_vex": {
      "aggregate_severity": "moderate",
      "current_release_date": "2026-09-12T17:00:12Z",
      "cve": "CVE-2024-41058",
      "id": "CVE-2024-41058",
      "initial_release_date": "2024-08-06T02:01:37Z",
      "product_status:known_affected": "330",
      "product_status:known_not_affected": "285",
      "product_status:recommended": "653",
      "source": "SUSE CSAF VEX",
      "status": "interim",
      "title": "SUSE CVE CVE-2024-41058",
      "url": "https://ftp.suse.com/pub/projects/security/csaf-vex/cve-2024-41058.json",
      "version": "69"
    },
    "vulnrichment": {
      "containers": "{\"adp\": [{\"title\": \"CVE Program Container\", \"references\": [{\"url\": \"https://git.kernel.org/stable/c/90f17e47f1e209c6a3c92a1d038a0a80c95c460e\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/9dd7f5663899ea13a6a73216106d9c13c37453e3\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/38b88d544216f806d93a273a62ff8ebe82254003\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/522018a0de6b6fcce60c04f86dfc5f0e4b6a1b36\", \"tags\": [\"x_transferred\"]}], \"providerMetadata\": {\"orgId\": \"af854a3a-2127-422b-91ae-364da2661108\", \"shortName\": \"CVE\", \"dateUpdated\": \"2024-08-02T04:46:51.695Z\"}}, {\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2024-41058\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2024-09-10T16:22:18.541006Z\"}}}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2024-09-11T12:42:20.247Z\"}}], \"cna\": {\"title\": \"cachefiles: fix slab-use-after-free in fscache_withdraw_volume()\", \"affected\": [{\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"fe2140e2f57fef8562e0f9b7cd447d2b08dc2f35\", \"lessThan\": \"90f17e47f1e209c6a3c92a1d038a0a80c95c460e\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"fe2140e2f57fef8562e0f9b7cd447d2b08dc2f35\", \"lessThan\": \"9dd7f5663899ea13a6a73216106d9c13c37453e3\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"fe2140e2f57fef8562e0f9b7cd447d2b08dc2f35\", \"lessThan\": \"38b88d544216f806d93a273a62ff8ebe82254003\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"fe2140e2f57fef8562e0f9b7cd447d2b08dc2f35\", \"lessThan\": \"522018a0de6b6fcce60c04f86dfc5f0e4b6a1b36\", \"versionType\": \"git\"}], \"programFiles\": [\"fs/cachefiles/cache.c\", \"include/trace/events/fscache.h\"], \"defaultStatus\": \"unaffected\"}, {\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"5.17\"}, {\"status\": \"unaffected\", \"version\": \"0\", \"lessThan\": \"5.17\", \"versionType\": \"semver\"}, {\"status\": \"unaffected\", \"version\": \"6.1.101\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.1.*\"}, {\"status\": \"unaffected\", \"version\": \"6.6.42\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.6.*\"}, {\"status\": \"unaffected\", \"version\": \"6.9.11\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.9.*\"}, {\"status\": \"unaffected\", \"version\": \"6.10\", \"versionType\": \"original_commit_for_fix\", \"lessThanOrEqual\": \"*\"}], \"programFiles\": [\"fs/cachefiles/cache.c\", \"include/trace/events/fscache.h\"], \"defaultStatus\": \"affected\"}], \"references\": [{\"url\": \"https://git.kernel.org/stable/c/90f17e47f1e209c6a3c92a1d038a0a80c95c460e\"}, {\"url\": \"https://git.kernel.org/stable/c/9dd7f5663899ea13a6a73216106d9c13c37453e3\"}, {\"url\": \"https://git.kernel.org/stable/c/38b88d544216f806d93a273a62ff8ebe82254003\"}, {\"url\": \"https://git.kernel.org/stable/c/522018a0de6b6fcce60c04f86dfc5f0e4b6a1b36\"}], \"x_generator\": {\"engine\": \"bippy-5f407fcff5a0\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"In the Linux kernel, the following vulnerability has been resolved:\\n\\ncachefiles: fix slab-use-after-free in fscache_withdraw_volume()\\n\\nWe got the following issue in our fault injection stress test:\\n\\n==================================================================\\nBUG: KASAN: slab-use-after-free in fscache_withdraw_volume+0x2e1/0x370\\nRead of size 4 at addr ffff88810680be08 by task ondemand-04-dae/5798\\n\\nCPU: 0 PID: 5798 Comm: ondemand-04-dae Not tainted 6.8.0-dirty #565\\nCall Trace:\\n kasan_check_range+0xf6/0x1b0\\n fscache_withdraw_volume+0x2e1/0x370\\n cachefiles_withdraw_volume+0x31/0x50\\n cachefiles_withdraw_cache+0x3ad/0x900\\n cachefiles_put_unbind_pincount+0x1f6/0x250\\n cachefiles_daemon_release+0x13b/0x290\\n __fput+0x204/0xa00\\n task_work_run+0x139/0x230\\n\\nAllocated by task 5820:\\n __kmalloc+0x1df/0x4b0\\n fscache_alloc_volume+0x70/0x600\\n __fscache_acquire_volume+0x1c/0x610\\n erofs_fscache_register_volume+0x96/0x1a0\\n erofs_fscache_register_fs+0x49a/0x690\\n erofs_fc_fill_super+0x6c0/0xcc0\\n vfs_get_super+0xa9/0x140\\n vfs_get_tree+0x8e/0x300\\n do_new_mount+0x28c/0x580\\n [...]\\n\\nFreed by task 5820:\\n kfree+0xf1/0x2c0\\n fscache_put_volume.part.0+0x5cb/0x9e0\\n erofs_fscache_unregister_fs+0x157/0x1b0\\n erofs_kill_sb+0xd9/0x1c0\\n deactivate_locked_super+0xa3/0x100\\n vfs_get_super+0x105/0x140\\n vfs_get_tree+0x8e/0x300\\n do_new_mount+0x28c/0x580\\n [...]\\n==================================================================\\n\\nFollowing is the process that triggers the issue:\\n\\n        mount failed         |         daemon exit\\n------------------------------------------------------------\\n deactivate_locked_super        cachefiles_daemon_release\\n  erofs_kill_sb\\n   erofs_fscache_unregister_fs\\n    fscache_relinquish_volume\\n     __fscache_relinquish_volume\\n      fscache_put_volume(fscache_volume, fscache_volume_put_relinquish)\\n       zero = __refcount_dec_and_test(\u0026fscache_volume-\u003eref, \u0026ref);\\n                                 cachefiles_put_unbind_pincount\\n                                  cachefiles_daemon_unbind\\n                                   cachefiles_withdraw_cache\\n                                    cachefiles_withdraw_volumes\\n                                     list_del_init(\u0026volume-\u003ecache_link)\\n       fscache_free_volume(fscache_volume)\\n        cache-\u003eops-\u003efree_volume\\n         cachefiles_free_volume\\n          list_del_init(\u0026cachefiles_volume-\u003ecache_link);\\n        kfree(fscache_volume)\\n                                     cachefiles_withdraw_volume\\n                                      fscache_withdraw_volume\\n                                       fscache_volume-\u003en_accesses\\n                                       // fscache_volume UAF !!!\\n\\nThe fscache_volume in cache-\u003evolumes must not have been freed yet, but its\\nreference count may be 0. So use the new fscache_try_get_volume() helper\\nfunction try to get its reference count.\\n\\nIf the reference count of fscache_volume is 0, fscache_put_volume() is\\nfreeing it, so wait for it to be removed from cache-\u003evolumes.\\n\\nIf its reference count is not 0, call cachefiles_withdraw_volume() with\\nreference count protection to avoid the above issue.\"}], \"providerMetadata\": {\"orgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"shortName\": \"Linux\", \"dateUpdated\": \"2024-12-19T09:11:05.806Z\"}}}",
      "cveMetadata": "{\"cveId\": \"CVE-2024-41058\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2024-12-19T09:11:05.806Z\", \"dateReserved\": \"2024-07-12T12:17:45.627Z\", \"assignerOrgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"datePublished\": \"2024-07-29T14:57:20.894Z\", \"assignerShortName\": \"Linux\"}",
      "dataType": "CVE_RECORD",
      "dataVersion": "5.1"
    }
  }
}



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…