CVE-2024-41049 (GCVE-0-2024-41049)

Vulnerability from cvelistv5 – Published: 2024-07-29 14:32 – Updated: 2026-08-05 11:35
VLAI
Title
filelock: fix potential use-after-free in posix_lock_inode
Summary
In the Linux kernel, the following vulnerability has been resolved: filelock: fix potential use-after-free in posix_lock_inode Light Hsieh reported a KASAN UAF warning in trace_posix_lock_inode(). The request pointer had been changed earlier to point to a lock entry that was added to the inode's list. However, before the tracepoint could fire, another task raced in and freed that lock. Fix this by moving the tracepoint inside the spinlock, which should ensure that this doesn't happen.
SSVC
Exploitation: none Automatable: no Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2024-09-10 16:22 UTC
Assigner
Linux CNA
Impacted products
Vendor Product Version
Linux Linux Affected: 117fb80cd1e63c419c7a221ce070becb4bfc7b6d , < 1cbbb3d9475c403ebedc327490c7c2b991398197 (git)
Affected: a6f4129378ca15f62cbdde09a7d3ccc35adcf49d , < 7d4c14f4b511fd4c0dc788084ae59b4656ace58b (git)
Affected: 766e56faddbec2eaf70c9299e1c9ef74d846d32b , < 02a8964260756c70b20393ad4006948510ac9967 (git)
Affected: 34bff6d850019e00001129d6de3aa4874c2cf471 , < 5cb36e35bc10ea334810937990c2b9023dacb1b0 (git)
Affected: 74f6f5912693ce454384eaeec48705646a21c74f , < 432b06b69d1d354a171f7499141116536579eb6a (git)
Affected: 74f6f5912693ce454384eaeec48705646a21c74f , < 116599f6a26906cf33f67975c59f0692ecf7e9b2 (git)
Affected: 74f6f5912693ce454384eaeec48705646a21c74f , < 1b3ec4f7c03d4b07bad70697d7e2f4088d2cfe92 (git)
Affected: e75396988bb9b3b90e6e8690604d0f566cea403a (git)
Affected: 5.4.257 , < 5.4.280 (semver)
Affected: 5.10.197 , < 5.10.222 (semver)
Affected: 5.15.133 , < 5.15.163 (semver)
Affected: 6.1.55 , < 6.1.100 (semver)
Affected: 6.5.5 , < 6.6 (semver)
Create a notification for this product.
Linux Linux Affected: 6.6
Unaffected: 0 , < 6.6 (semver)
Unaffected: 5.4.280 , ≤ 5.4.* (semver)
Unaffected: 5.10.222 , ≤ 5.10.* (semver)
Unaffected: 5.15.163 , ≤ 5.15.* (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)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "adp": [
      {
        "providerMetadata": {
          "dateUpdated": "2025-11-03T21:59:49.896Z",
          "orgId": "af854a3a-2127-422b-91ae-364da2661108",
          "shortName": "CVE"
        },
        "references": [
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/1cbbb3d9475c403ebedc327490c7c2b991398197"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/7d4c14f4b511fd4c0dc788084ae59b4656ace58b"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/02a8964260756c70b20393ad4006948510ac9967"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/5cb36e35bc10ea334810937990c2b9023dacb1b0"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/432b06b69d1d354a171f7499141116536579eb6a"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/116599f6a26906cf33f67975c59f0692ecf7e9b2"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/1b3ec4f7c03d4b07bad70697d7e2f4088d2cfe92"
          },
          {
            "url": "https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html"
          }
        ],
        "title": "CVE Program Container"
      },
      {
        "metrics": [
          {
            "other": {
              "content": {
                "id": "CVE-2024-41049",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "partial"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2024-09-10T16:22:47.848280Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2024-09-11T17:34:01.912Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      }
    ],
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "fs/locks.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "1cbbb3d9475c403ebedc327490c7c2b991398197",
              "status": "affected",
              "version": "117fb80cd1e63c419c7a221ce070becb4bfc7b6d",
              "versionType": "git"
            },
            {
              "lessThan": "7d4c14f4b511fd4c0dc788084ae59b4656ace58b",
              "status": "affected",
              "version": "a6f4129378ca15f62cbdde09a7d3ccc35adcf49d",
              "versionType": "git"
            },
            {
              "lessThan": "02a8964260756c70b20393ad4006948510ac9967",
              "status": "affected",
              "version": "766e56faddbec2eaf70c9299e1c9ef74d846d32b",
              "versionType": "git"
            },
            {
              "lessThan": "5cb36e35bc10ea334810937990c2b9023dacb1b0",
              "status": "affected",
              "version": "34bff6d850019e00001129d6de3aa4874c2cf471",
              "versionType": "git"
            },
            {
              "lessThan": "432b06b69d1d354a171f7499141116536579eb6a",
              "status": "affected",
              "version": "74f6f5912693ce454384eaeec48705646a21c74f",
              "versionType": "git"
            },
            {
              "lessThan": "116599f6a26906cf33f67975c59f0692ecf7e9b2",
              "status": "affected",
              "version": "74f6f5912693ce454384eaeec48705646a21c74f",
              "versionType": "git"
            },
            {
              "lessThan": "1b3ec4f7c03d4b07bad70697d7e2f4088d2cfe92",
              "status": "affected",
              "version": "74f6f5912693ce454384eaeec48705646a21c74f",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "e75396988bb9b3b90e6e8690604d0f566cea403a",
              "versionType": "git"
            },
            {
              "lessThan": "5.4.280",
              "status": "affected",
              "version": "5.4.257",
              "versionType": "semver"
            },
            {
              "lessThan": "5.10.222",
              "status": "affected",
              "version": "5.10.197",
              "versionType": "semver"
            },
            {
              "lessThan": "5.15.163",
              "status": "affected",
              "version": "5.15.133",
              "versionType": "semver"
            },
            {
              "lessThan": "6.1.100",
              "status": "affected",
              "version": "6.1.55",
              "versionType": "semver"
            },
            {
              "lessThan": "6.6",
              "status": "affected",
              "version": "6.5.5",
              "versionType": "semver"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "fs/locks.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.6"
            },
            {
              "lessThan": "6.6",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.4.*",
              "status": "unaffected",
              "version": "5.4.280",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.222",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.163",
              "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": "5.4.280",
                  "versionStartIncluding": "5.4.257",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.222",
                  "versionStartIncluding": "5.10.197",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.163",
                  "versionStartIncluding": "5.15.133",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.100",
                  "versionStartIncluding": "6.1.55",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.41",
                  "versionStartIncluding": "6.6",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.9.10",
                  "versionStartIncluding": "6.6",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.10",
                  "versionStartIncluding": "6.6",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "6.5.5",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nfilelock: fix potential use-after-free in posix_lock_inode\n\nLight Hsieh reported a KASAN UAF warning in trace_posix_lock_inode().\nThe request pointer had been changed earlier to point to a lock entry\nthat was added to the inode\u0027s list. However, before the tracepoint could\nfire, another task raced in and freed that lock.\n\nFix this by moving the tracepoint inside the spinlock, which should\nensure that this doesn\u0027t happen."
        }
      ],
      "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 `posix_lock_inode()` is reached from the local `fcntl(F_SETLK/F_SETLKW/F_OFD_SETLK)` syscall path (`fcntl_setlk` \u2192 `do_lock_file_wait` \u2192 `vfs_lock_file` \u2192 `posix_lock_file`), which is the universally present attack surface on every system. The nfsd/lockd/ksmbd callers of `vfs_lock_file()` also reach it, but those require an optional network file server to be configured and exporting a filesystem with no private `-\u003elock`, so the core defect is characterized as local.\nAC:L - The attacker controls both sides of the race: one thread issues an overlapping same-type `F_SETLK` that merges into an existing lock (making `request` point at a list-resident lock), while a second attacker thread issues an overlapping `F_UNLCK`/`close()` that deletes and `kmem_cache_free()`s that entry, and the window between `spin_unlock(\u0026ctx-\u003eflc_lock)`/`percpu_up_read()` and the tracepoint can be hit repeatedly in a tight loop with threads pinned to separate CPUs. Consistent with this CNA\u0027s scoring of other tracepoint-gated use-after-frees (CVE-2026-63910, CVE-2024-56759), the tracepoint-enabled precondition does not raise complexity.\nPR:L - Any unprivileged local user can call `fcntl()` on a file descriptor for a file it can already open; the only gate on the path is the `security_file_lock()` LSM hook, with no capability, root, or namespace requirement. POSIX advisory locks work on ordinary files in `/tmp`, `/dev/shm`, or the user\u0027s home directory.\nUI:N - The attacker\u0027s own threads perform every step \u2014 allocating the lock, merging it, and freeing it concurrently \u2014 with no action required from any other user or administrator.\nS:U - The freed `struct file_lock`, the corrupted read, and any resulting panic are all confined to the kernel of the same system; no VM, IOMMU, container, or sandbox boundary is crossed.\nC:H - The tracepoint reads seven fields out of a freed `filelock_cache` object \u2014 including the raw `flc_blocker` and `flc_owner` kernel pointers and the 64-bit `fl_start`/`fl_end` \u2014 after the attacker has had the opportunity to groom and reallocate that slab object, disclosing arbitrary reallocated kernel memory contents and defeating KASLR. Per kernel scoring guidance, use-after-free is rated High.\nI:H - A use-after-free on a `struct file_lock` that the attacker can reliably reallocate under control gives the classic UAF primitive \u2014 the stale `request` pointer is consumed as a live object after `kmem_cache_free()`, and heap spraying against the freed slot makes the condition exploitable for memory corruption rather than a benign stale read. Consistent with kernel guidance and this CNA\u0027s rating of the equivalent `dma_buf_fd()` tracepoint UAF, integrity impact is High.\nA:H - This is precisely the reported failure mode: the UAF read faulted the kernel on the reporter\u0027s MTE-enabled ARM64 system (`do_tag_check_fault` \u2192 `__do_kernel_fault` \u2192 panic), and on KASAN, hardware-tag, `slub_debug`, or `DEBUG_PAGEALLOC` builds the dereference of freed slab memory oopses. The race can be re-triggered in a loop, giving a repeatable local denial of service."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-05T11:35:00.349Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/1cbbb3d9475c403ebedc327490c7c2b991398197"
        },
        {
          "url": "https://git.kernel.org/stable/c/7d4c14f4b511fd4c0dc788084ae59b4656ace58b"
        },
        {
          "url": "https://git.kernel.org/stable/c/02a8964260756c70b20393ad4006948510ac9967"
        },
        {
          "url": "https://git.kernel.org/stable/c/5cb36e35bc10ea334810937990c2b9023dacb1b0"
        },
        {
          "url": "https://git.kernel.org/stable/c/432b06b69d1d354a171f7499141116536579eb6a"
        },
        {
          "url": "https://git.kernel.org/stable/c/116599f6a26906cf33f67975c59f0692ecf7e9b2"
        },
        {
          "url": "https://git.kernel.org/stable/c/1b3ec4f7c03d4b07bad70697d7e2f4088d2cfe92"
        }
      ],
      "title": "filelock: fix potential use-after-free in posix_lock_inode",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2024-41049",
    "datePublished": "2024-07-29T14:32:05.953Z",
    "dateReserved": "2024-07-12T12:17:45.625Z",
    "dateUpdated": "2026-08-05T11:35:00.349Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2024-41049",
      "date": "2026-11-19",
      "epss": "0.00281",
      "percentile": "0.20922"
    },
    "microsoft_vex": {
      "current_release_date": "2026-02-18T15:12:34.000Z",
      "cve": "CVE-2024-41049",
      "id": "msrc_CVE-2024-41049",
      "initial_release_date": "2024-09-11T00:00:00.000Z",
      "product_status:fixed": "2",
      "product_status:known_affected": "2",
      "source": "Microsoft CSAF VEX",
      "status": "final",
      "title": "filelock: fix potential use-after-free in posix_lock_inode",
      "url": "https://msrc.microsoft.com/csaf/vex/2024/msrc_cve-2024-41049.json",
      "version": "3"
    },
    "redhat_vex": {
      "aggregate_severity": "Moderate",
      "current_release_date": "2026-11-05T12:39:59+00:00",
      "cve": "CVE-2024-41049",
      "id": "CVE-2024-41049",
      "initial_release_date": "2024-07-29T00:00:00+00:00",
      "product_status:fixed": "792",
      "product_status:known_affected": "50",
      "product_status:known_not_affected": "72",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: filelock: fix potential use-after-free in posix_lock_inode",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2024/cve-2024-41049.json",
      "version": "3"
    },
    "vulnrichment": {
      "containers": {
        "adp": [
          {
            "providerMetadata": {
              "dateUpdated": "2025-11-03T21:59:49.896Z",
              "orgId": "af854a3a-2127-422b-91ae-364da2661108",
              "shortName": "CVE"
            },
            "references": [
              {
                "tags": [
                  "x_transferred"
                ],
                "url": "https://git.kernel.org/stable/c/1cbbb3d9475c403ebedc327490c7c2b991398197"
              },
              {
                "tags": [
                  "x_transferred"
                ],
                "url": "https://git.kernel.org/stable/c/7d4c14f4b511fd4c0dc788084ae59b4656ace58b"
              },
              {
                "tags": [
                  "x_transferred"
                ],
                "url": "https://git.kernel.org/stable/c/02a8964260756c70b20393ad4006948510ac9967"
              },
              {
                "tags": [
                  "x_transferred"
                ],
                "url": "https://git.kernel.org/stable/c/5cb36e35bc10ea334810937990c2b9023dacb1b0"
              },
              {
                "tags": [
                  "x_transferred"
                ],
                "url": "https://git.kernel.org/stable/c/432b06b69d1d354a171f7499141116536579eb6a"
              },
              {
                "tags": [
                  "x_transferred"
                ],
                "url": "https://git.kernel.org/stable/c/116599f6a26906cf33f67975c59f0692ecf7e9b2"
              },
              {
                "tags": [
                  "x_transferred"
                ],
                "url": "https://git.kernel.org/stable/c/1b3ec4f7c03d4b07bad70697d7e2f4088d2cfe92"
              },
              {
                "url": "https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html"
              }
            ],
            "title": "CVE Program Container"
          },
          {
            "metrics": [
              {
                "other": {
                  "content": {
                    "id": "CVE-2024-41049",
                    "options": [
                      {
                        "Exploitation": "none"
                      },
                      {
                        "Automatable": "no"
                      },
                      {
                        "Technical Impact": "partial"
                      }
                    ],
                    "role": "CISA Coordinator",
                    "timestamp": "2024-09-10T16:22:47.848280Z",
                    "version": "2.0.3"
                  },
                  "type": "ssvc"
                }
              }
            ],
            "providerMetadata": {
              "dateUpdated": "2024-09-11T12:42:20.269Z",
              "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "shortName": "CISA-ADP"
            },
            "title": "CISA ADP Vulnrichment"
          }
        ],
        "cna": {
          "affected": [
            {
              "defaultStatus": "unaffected",
              "product": "Linux",
              "programFiles": [
                "fs/locks.c"
              ],
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "vendor": "Linux",
              "versions": [
                {
                  "lessThan": "1cbbb3d9475c403ebedc327490c7c2b991398197",
                  "status": "affected",
                  "version": "117fb80cd1e63c419c7a221ce070becb4bfc7b6d",
                  "versionType": "git"
                },
                {
                  "lessThan": "7d4c14f4b511fd4c0dc788084ae59b4656ace58b",
                  "status": "affected",
                  "version": "a6f4129378ca15f62cbdde09a7d3ccc35adcf49d",
                  "versionType": "git"
                },
                {
                  "lessThan": "02a8964260756c70b20393ad4006948510ac9967",
                  "status": "affected",
                  "version": "766e56faddbec2eaf70c9299e1c9ef74d846d32b",
                  "versionType": "git"
                },
                {
                  "lessThan": "5cb36e35bc10ea334810937990c2b9023dacb1b0",
                  "status": "affected",
                  "version": "34bff6d850019e00001129d6de3aa4874c2cf471",
                  "versionType": "git"
                },
                {
                  "lessThan": "432b06b69d1d354a171f7499141116536579eb6a",
                  "status": "affected",
                  "version": "74f6f5912693ce454384eaeec48705646a21c74f",
                  "versionType": "git"
                },
                {
                  "lessThan": "116599f6a26906cf33f67975c59f0692ecf7e9b2",
                  "status": "affected",
                  "version": "74f6f5912693ce454384eaeec48705646a21c74f",
                  "versionType": "git"
                },
                {
                  "lessThan": "1b3ec4f7c03d4b07bad70697d7e2f4088d2cfe92",
                  "status": "affected",
                  "version": "74f6f5912693ce454384eaeec48705646a21c74f",
                  "versionType": "git"
                },
                {
                  "status": "affected",
                  "version": "e75396988bb9b3b90e6e8690604d0f566cea403a",
                  "versionType": "git"
                },
                {
                  "lessThan": "5.4.280",
                  "status": "affected",
                  "version": "5.4.257",
                  "versionType": "semver"
                },
                {
                  "lessThan": "5.10.222",
                  "status": "affected",
                  "version": "5.10.197",
                  "versionType": "semver"
                },
                {
                  "lessThan": "5.15.163",
                  "status": "affected",
                  "version": "5.15.133",
                  "versionType": "semver"
                },
                {
                  "lessThan": "6.1.100",
                  "status": "affected",
                  "version": "6.1.55",
                  "versionType": "semver"
                },
                {
                  "lessThan": "6.6",
                  "status": "affected",
                  "version": "6.5.5",
                  "versionType": "semver"
                }
              ]
            },
            {
              "defaultStatus": "affected",
              "product": "Linux",
              "programFiles": [
                "fs/locks.c"
              ],
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "vendor": "Linux",
              "versions": [
                {
                  "status": "affected",
                  "version": "6.6"
                },
                {
                  "lessThan": "6.6",
                  "status": "unaffected",
                  "version": "0",
                  "versionType": "semver"
                },
                {
                  "lessThanOrEqual": "5.4.*",
                  "status": "unaffected",
                  "version": "5.4.280",
                  "versionType": "semver"
                },
                {
                  "lessThanOrEqual": "5.10.*",
                  "status": "unaffected",
                  "version": "5.10.222",
                  "versionType": "semver"
                },
                {
                  "lessThanOrEqual": "5.15.*",
                  "status": "unaffected",
                  "version": "5.15.163",
                  "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": "5.4.280",
                      "versionStartIncluding": "5.4.257",
                      "vulnerable": true
                    },
                    {
                      "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "5.10.222",
                      "versionStartIncluding": "5.10.197",
                      "vulnerable": true
                    },
                    {
                      "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "5.15.163",
                      "versionStartIncluding": "5.15.133",
                      "vulnerable": true
                    },
                    {
                      "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "6.1.100",
                      "versionStartIncluding": "6.1.55",
                      "vulnerable": true
                    },
                    {
                      "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "6.6.41",
                      "versionStartIncluding": "6.6",
                      "vulnerable": true
                    },
                    {
                      "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "6.9.10",
                      "versionStartIncluding": "6.6",
                      "vulnerable": true
                    },
                    {
                      "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "6.10",
                      "versionStartIncluding": "6.6",
                      "vulnerable": true
                    },
                    {
                      "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                      "versionStartIncluding": "6.5.5",
                      "vulnerable": true
                    }
                  ],
                  "negate": false,
                  "operator": "OR"
                }
              ]
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nfilelock: fix potential use-after-free in posix_lock_inode\n\nLight Hsieh reported a KASAN UAF warning in trace_posix_lock_inode().\nThe request pointer had been changed earlier to point to a lock entry\nthat was added to the inode\u0027s list. However, before the tracepoint could\nfire, another task raced in and freed that lock.\n\nFix this by moving the tracepoint inside the spinlock, which should\nensure that this doesn\u0027t happen."
            }
          ],
          "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 `posix_lock_inode()` is reached from the local `fcntl(F_SETLK/F_SETLKW/F_OFD_SETLK)` syscall path (`fcntl_setlk` \u2192 `do_lock_file_wait` \u2192 `vfs_lock_file` \u2192 `posix_lock_file`), which is the universally present attack surface on every system. The nfsd/lockd/ksmbd callers of `vfs_lock_file()` also reach it, but those require an optional network file server to be configured and exporting a filesystem with no private `-\u003elock`, so the core defect is characterized as local.\nAC:L - The attacker controls both sides of the race: one thread issues an overlapping same-type `F_SETLK` that merges into an existing lock (making `request` point at a list-resident lock), while a second attacker thread issues an overlapping `F_UNLCK`/`close()` that deletes and `kmem_cache_free()`s that entry, and the window between `spin_unlock(\u0026ctx-\u003eflc_lock)`/`percpu_up_read()` and the tracepoint can be hit repeatedly in a tight loop with threads pinned to separate CPUs. Consistent with this CNA\u0027s scoring of other tracepoint-gated use-after-frees (CVE-2026-63910, CVE-2024-56759), the tracepoint-enabled precondition does not raise complexity.\nPR:L - Any unprivileged local user can call `fcntl()` on a file descriptor for a file it can already open; the only gate on the path is the `security_file_lock()` LSM hook, with no capability, root, or namespace requirement. POSIX advisory locks work on ordinary files in `/tmp`, `/dev/shm`, or the user\u0027s home directory.\nUI:N - The attacker\u0027s own threads perform every step \u2014 allocating the lock, merging it, and freeing it concurrently \u2014 with no action required from any other user or administrator.\nS:U - The freed `struct file_lock`, the corrupted read, and any resulting panic are all confined to the kernel of the same system; no VM, IOMMU, container, or sandbox boundary is crossed.\nC:H - The tracepoint reads seven fields out of a freed `filelock_cache` object \u2014 including the raw `flc_blocker` and `flc_owner` kernel pointers and the 64-bit `fl_start`/`fl_end` \u2014 after the attacker has had the opportunity to groom and reallocate that slab object, disclosing arbitrary reallocated kernel memory contents and defeating KASLR. Per kernel scoring guidance, use-after-free is rated High.\nI:H - A use-after-free on a `struct file_lock` that the attacker can reliably reallocate under control gives the classic UAF primitive \u2014 the stale `request` pointer is consumed as a live object after `kmem_cache_free()`, and heap spraying against the freed slot makes the condition exploitable for memory corruption rather than a benign stale read. Consistent with kernel guidance and this CNA\u0027s rating of the equivalent `dma_buf_fd()` tracepoint UAF, integrity impact is High.\nA:H - This is precisely the reported failure mode: the UAF read faulted the kernel on the reporter\u0027s MTE-enabled ARM64 system (`do_tag_check_fault` \u2192 `__do_kernel_fault` \u2192 panic), and on KASAN, hardware-tag, `slub_debug`, or `DEBUG_PAGEALLOC` builds the dereference of freed slab memory oopses. The race can be re-triggered in a loop, giving a repeatable local denial of service."
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-08-05T11:35:00.349Z",
            "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "shortName": "Linux"
          },
          "references": [
            {
              "url": "https://git.kernel.org/stable/c/1cbbb3d9475c403ebedc327490c7c2b991398197"
            },
            {
              "url": "https://git.kernel.org/stable/c/7d4c14f4b511fd4c0dc788084ae59b4656ace58b"
            },
            {
              "url": "https://git.kernel.org/stable/c/02a8964260756c70b20393ad4006948510ac9967"
            },
            {
              "url": "https://git.kernel.org/stable/c/5cb36e35bc10ea334810937990c2b9023dacb1b0"
            },
            {
              "url": "https://git.kernel.org/stable/c/432b06b69d1d354a171f7499141116536579eb6a"
            },
            {
              "url": "https://git.kernel.org/stable/c/116599f6a26906cf33f67975c59f0692ecf7e9b2"
            },
            {
              "url": "https://git.kernel.org/stable/c/1b3ec4f7c03d4b07bad70697d7e2f4088d2cfe92"
            }
          ],
          "title": "filelock: fix potential use-after-free in posix_lock_inode",
          "x_generator": {
            "engine": "bippy-1.2.0"
          }
        }
      },
      "cveMetadata": {
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "assignerShortName": "Linux",
        "cveId": "CVE-2024-41049",
        "datePublished": "2024-07-29T14:32:05.953Z",
        "dateReserved": "2024-07-12T12:17:45.625Z",
        "dateUpdated": "2026-08-05T11:35:00.349Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

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.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    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.