CVE-2025-68261 (GCVE-0-2025-68261)
Vulnerability from cvelistv5
Published
2025-12-16 14:45
Modified
2025-12-16 14:45
Severity ?
Summary
In the Linux kernel, the following vulnerability has been resolved: ext4: add i_data_sem protection in ext4_destroy_inline_data_nolock() Fix a race between inline data destruction and block mapping. The function ext4_destroy_inline_data_nolock() changes the inode data layout by clearing EXT4_INODE_INLINE_DATA and setting EXT4_INODE_EXTENTS. At the same time, another thread may execute ext4_map_blocks(), which tests EXT4_INODE_EXTENTS to decide whether to call ext4_ext_map_blocks() or ext4_ind_map_blocks(). Without i_data_sem protection, ext4_ind_map_blocks() may receive inode with EXT4_INODE_EXTENTS flag and triggering assert. kernel BUG at fs/ext4/indirect.c:546! EXT4-fs (loop2): unmounting filesystem. invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 RIP: 0010:ext4_ind_map_blocks.cold+0x2b/0x5a fs/ext4/indirect.c:546 Call Trace: <TASK> ext4_map_blocks+0xb9b/0x16f0 fs/ext4/inode.c:681 _ext4_get_block+0x242/0x590 fs/ext4/inode.c:822 ext4_block_write_begin+0x48b/0x12c0 fs/ext4/inode.c:1124 ext4_write_begin+0x598/0xef0 fs/ext4/inode.c:1255 ext4_da_write_begin+0x21e/0x9c0 fs/ext4/inode.c:3000 generic_perform_write+0x259/0x5d0 mm/filemap.c:3846 ext4_buffered_write_iter+0x15b/0x470 fs/ext4/file.c:285 ext4_file_write_iter+0x8e0/0x17f0 fs/ext4/file.c:679 call_write_iter include/linux/fs.h:2271 [inline] do_iter_readv_writev+0x212/0x3c0 fs/read_write.c:735 do_iter_write+0x186/0x710 fs/read_write.c:861 vfs_iter_write+0x70/0xa0 fs/read_write.c:902 iter_file_splice_write+0x73b/0xc90 fs/splice.c:685 do_splice_from fs/splice.c:763 [inline] direct_splice_actor+0x10f/0x170 fs/splice.c:950 splice_direct_to_actor+0x33a/0xa10 fs/splice.c:896 do_splice_direct+0x1a9/0x280 fs/splice.c:1002 do_sendfile+0xb13/0x12c0 fs/read_write.c:1255 __do_sys_sendfile64 fs/read_write.c:1323 [inline] __se_sys_sendfile64 fs/read_write.c:1309 [inline] __x64_sys_sendfile64+0x1cf/0x210 fs/read_write.c:1309 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x35/0x80 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x6e/0xd8
Impacted products
Vendor Product Version
Linux Linux Version: c755e251357a0cee0679081f08c3f4ba797a8009
Version: c755e251357a0cee0679081f08c3f4ba797a8009
Version: c755e251357a0cee0679081f08c3f4ba797a8009
Version: c755e251357a0cee0679081f08c3f4ba797a8009
Version: 3e96c3fdcfccb321a9e1623f78cc71b44593e965
Version: 5781ac24bbd998ebb1ff30143bb06244d847af48
Version: 9b06cce3ca4d60d442c39bfa7c058b71b1cee6c2
Version: da1e40237f8f3516581b534c484c236a79ccfd14
Version: 7cf6b709b6412afd1d93b2c4b37163c3602e3b95
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "fs/ext4/inline.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "22a76b0861ae61a299c8e126c1aca8c4fda820fd",
              "status": "affected",
              "version": "c755e251357a0cee0679081f08c3f4ba797a8009",
              "versionType": "git"
            },
            {
              "lessThan": "ba8aeff294ac7ff6dfe293663d815c54c5ee218c",
              "status": "affected",
              "version": "c755e251357a0cee0679081f08c3f4ba797a8009",
              "versionType": "git"
            },
            {
              "lessThan": "5cad18e527ba8a9ca5463cc170073eeb5a4826f4",
              "status": "affected",
              "version": "c755e251357a0cee0679081f08c3f4ba797a8009",
              "versionType": "git"
            },
            {
              "lessThan": "0cd8feea8777f8d9b9a862b89c688b049a5c8475",
              "status": "affected",
              "version": "c755e251357a0cee0679081f08c3f4ba797a8009",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "3e96c3fdcfccb321a9e1623f78cc71b44593e965",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "5781ac24bbd998ebb1ff30143bb06244d847af48",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "9b06cce3ca4d60d442c39bfa7c058b71b1cee6c2",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "da1e40237f8f3516581b534c484c236a79ccfd14",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "7cf6b709b6412afd1d93b2c4b37163c3602e3b95",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "fs/ext4/inline.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "4.11"
            },
            {
              "lessThan": "4.11",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.62",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.17.*",
              "status": "unaffected",
              "version": "6.17.12",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.1",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.19-rc1",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.62",
                  "versionStartIncluding": "4.11",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.17.12",
                  "versionStartIncluding": "4.11",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.1",
                  "versionStartIncluding": "4.11",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.19-rc1",
                  "versionStartIncluding": "4.11",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "3.16.44",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "3.18.107",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "4.4.129",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "4.9.14",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "4.10.2",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\next4: add i_data_sem protection in ext4_destroy_inline_data_nolock()\n\nFix a race between inline data destruction and block mapping.\n\nThe function ext4_destroy_inline_data_nolock() changes the inode data\nlayout by clearing EXT4_INODE_INLINE_DATA and setting EXT4_INODE_EXTENTS.\nAt the same time, another thread may execute ext4_map_blocks(), which\ntests EXT4_INODE_EXTENTS to decide whether to call ext4_ext_map_blocks()\nor ext4_ind_map_blocks().\n\nWithout i_data_sem protection, ext4_ind_map_blocks() may receive inode\nwith EXT4_INODE_EXTENTS flag and triggering assert.\n\nkernel BUG at fs/ext4/indirect.c:546!\nEXT4-fs (loop2): unmounting filesystem.\ninvalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI\nHardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014\nRIP: 0010:ext4_ind_map_blocks.cold+0x2b/0x5a fs/ext4/indirect.c:546\n\nCall Trace:\n \u003cTASK\u003e\n ext4_map_blocks+0xb9b/0x16f0 fs/ext4/inode.c:681\n _ext4_get_block+0x242/0x590 fs/ext4/inode.c:822\n ext4_block_write_begin+0x48b/0x12c0 fs/ext4/inode.c:1124\n ext4_write_begin+0x598/0xef0 fs/ext4/inode.c:1255\n ext4_da_write_begin+0x21e/0x9c0 fs/ext4/inode.c:3000\n generic_perform_write+0x259/0x5d0 mm/filemap.c:3846\n ext4_buffered_write_iter+0x15b/0x470 fs/ext4/file.c:285\n ext4_file_write_iter+0x8e0/0x17f0 fs/ext4/file.c:679\n call_write_iter include/linux/fs.h:2271 [inline]\n do_iter_readv_writev+0x212/0x3c0 fs/read_write.c:735\n do_iter_write+0x186/0x710 fs/read_write.c:861\n vfs_iter_write+0x70/0xa0 fs/read_write.c:902\n iter_file_splice_write+0x73b/0xc90 fs/splice.c:685\n do_splice_from fs/splice.c:763 [inline]\n direct_splice_actor+0x10f/0x170 fs/splice.c:950\n splice_direct_to_actor+0x33a/0xa10 fs/splice.c:896\n do_splice_direct+0x1a9/0x280 fs/splice.c:1002\n do_sendfile+0xb13/0x12c0 fs/read_write.c:1255\n __do_sys_sendfile64 fs/read_write.c:1323 [inline]\n __se_sys_sendfile64 fs/read_write.c:1309 [inline]\n __x64_sys_sendfile64+0x1cf/0x210 fs/read_write.c:1309\n do_syscall_x64 arch/x86/entry/common.c:51 [inline]\n do_syscall_64+0x35/0x80 arch/x86/entry/common.c:81\n entry_SYSCALL_64_after_hwframe+0x6e/0xd8"
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-12-16T14:45:03.252Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/22a76b0861ae61a299c8e126c1aca8c4fda820fd"
        },
        {
          "url": "https://git.kernel.org/stable/c/ba8aeff294ac7ff6dfe293663d815c54c5ee218c"
        },
        {
          "url": "https://git.kernel.org/stable/c/5cad18e527ba8a9ca5463cc170073eeb5a4826f4"
        },
        {
          "url": "https://git.kernel.org/stable/c/0cd8feea8777f8d9b9a862b89c688b049a5c8475"
        }
      ],
      "title": "ext4: add i_data_sem protection in ext4_destroy_inline_data_nolock()",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2025-68261",
    "datePublished": "2025-12-16T14:45:03.252Z",
    "dateReserved": "2025-12-16T13:41:40.267Z",
    "dateUpdated": "2025-12-16T14:45:03.252Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "nvd": "{\"cve\":{\"id\":\"CVE-2025-68261\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2025-12-16T15:15:55.547\",\"lastModified\":\"2025-12-18T15:08:06.237\",\"vulnStatus\":\"Awaiting Analysis\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\next4: add i_data_sem protection in ext4_destroy_inline_data_nolock()\\n\\nFix a race between inline data destruction and block mapping.\\n\\nThe function ext4_destroy_inline_data_nolock() changes the inode data\\nlayout by clearing EXT4_INODE_INLINE_DATA and setting EXT4_INODE_EXTENTS.\\nAt the same time, another thread may execute ext4_map_blocks(), which\\ntests EXT4_INODE_EXTENTS to decide whether to call ext4_ext_map_blocks()\\nor ext4_ind_map_blocks().\\n\\nWithout i_data_sem protection, ext4_ind_map_blocks() may receive inode\\nwith EXT4_INODE_EXTENTS flag and triggering assert.\\n\\nkernel BUG at fs/ext4/indirect.c:546!\\nEXT4-fs (loop2): unmounting filesystem.\\ninvalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI\\nHardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014\\nRIP: 0010:ext4_ind_map_blocks.cold+0x2b/0x5a fs/ext4/indirect.c:546\\n\\nCall Trace:\\n \u003cTASK\u003e\\n ext4_map_blocks+0xb9b/0x16f0 fs/ext4/inode.c:681\\n _ext4_get_block+0x242/0x590 fs/ext4/inode.c:822\\n ext4_block_write_begin+0x48b/0x12c0 fs/ext4/inode.c:1124\\n ext4_write_begin+0x598/0xef0 fs/ext4/inode.c:1255\\n ext4_da_write_begin+0x21e/0x9c0 fs/ext4/inode.c:3000\\n generic_perform_write+0x259/0x5d0 mm/filemap.c:3846\\n ext4_buffered_write_iter+0x15b/0x470 fs/ext4/file.c:285\\n ext4_file_write_iter+0x8e0/0x17f0 fs/ext4/file.c:679\\n call_write_iter include/linux/fs.h:2271 [inline]\\n do_iter_readv_writev+0x212/0x3c0 fs/read_write.c:735\\n do_iter_write+0x186/0x710 fs/read_write.c:861\\n vfs_iter_write+0x70/0xa0 fs/read_write.c:902\\n iter_file_splice_write+0x73b/0xc90 fs/splice.c:685\\n do_splice_from fs/splice.c:763 [inline]\\n direct_splice_actor+0x10f/0x170 fs/splice.c:950\\n splice_direct_to_actor+0x33a/0xa10 fs/splice.c:896\\n do_splice_direct+0x1a9/0x280 fs/splice.c:1002\\n do_sendfile+0xb13/0x12c0 fs/read_write.c:1255\\n __do_sys_sendfile64 fs/read_write.c:1323 [inline]\\n __se_sys_sendfile64 fs/read_write.c:1309 [inline]\\n __x64_sys_sendfile64+0x1cf/0x210 fs/read_write.c:1309\\n do_syscall_x64 arch/x86/entry/common.c:51 [inline]\\n do_syscall_64+0x35/0x80 arch/x86/entry/common.c:81\\n entry_SYSCALL_64_after_hwframe+0x6e/0xd8\"}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/0cd8feea8777f8d9b9a862b89c688b049a5c8475\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/22a76b0861ae61a299c8e126c1aca8c4fda820fd\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/5cad18e527ba8a9ca5463cc170073eeb5a4826f4\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/ba8aeff294ac7ff6dfe293663d815c54c5ee218c\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}"
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.


Loading…

Loading…