{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "5f483c4abb507d068b326f24e4ea3481db9cda06"
            },
            {
              "fixed": "e96d76f82701213fd2f14660b786f9f82f1d0dc7"
            },
            {
              "fixed": "21b520d7a19ee3a5b64d2a3e914993fe653a22a2"
            },
            {
              "fixed": "5f2ead17963c71d94d643d2a203bd6c0a33108fc"
            },
            {
              "fixed": "6d2fac4a7838bbb617982cbf3d8352e7f9eedd5c"
            },
            {
              "fixed": "6132073655e826052562f90f939f532aac6fbafe"
            },
            {
              "fixed": "d764d3f28a38deafe2980f6671764968dcdb9bc5"
            },
            {
              "fixed": "cb5303cfe9bc86237f84660994b503c1b9faffb0"
            },
            {
              "fixed": "e062baf5680845705d21df415c8f0751c96b0792"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "4.17.0"
            },
            {
              "fixed": "5.10.275"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.11.0"
            },
            {
              "fixed": "5.15.226"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.16.0"
            },
            {
              "fixed": "6.1.193"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.2.0"
            },
            {
              "fixed": "6.6.163"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.7.0"
            },
            {
              "fixed": "6.12.117"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.61"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.2"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142807.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nocfs2: publish the filecheck owner before adding sysfs attributes\n\nocfs2_filecheck_create_sysfs() initializes the filecheck allocation before\ncalling kobject_init_and_add(), but assigns entry-\u003efs_fcheck only after\nthat call returns.  The default attribute group can already be visible\nwhile registration is in progress.  A concurrent read can therefore enter\nocfs2_filecheck_attr_show() with a NULL fs_fcheck and try to lock its\nfc_lock.\n\nAssign the initialized owner before adding the kobject, so every activated\nattribute has valid state.  Clear the pointer when addition fails,\npreserving the existing teardown guard and error cleanup.\n\nA controlled probe-instrumented test kernel with the original OCFS2\nregistration ordering produced this Oops during a concurrent sysfs read:\n\n  KASAN: null-ptr-deref in range [0x0000000000000028-0x000000000000002f]\n  RIP: 0010:kasan_byte_accessible+0x15/0x30\n  Call Trace:\n   \u003cTASK\u003e\n   __kasan_check_byte+0x13/0x50\n   lock_acquire+0x113/0x300\n   _raw_spin_lock+0x31/0x40\n   ocfs2_filecheck_attr_show+0x138/0x5f0\n   ocfs2_filecheck_show+0x5d/0x90\n   sysfs_kf_seq_show+0x1d3/0x360\n   seq_read_iter+0x480/0x1110\n   kernfs_fop_read_iter+0x419/0x5a0\n   vfs_read+0x7d2/0xc20\n   ksys_read+0x111/0x200\n   do_syscall_64+0x114/0x620\n   entry_SYSCALL_64_after_hwframe+0x77/0x7f\n   \u003c/TASK\u003e\n  Modules linked in:",
  "id": "CVE-2026-142807",
  "modified": "2026-12-03T04:46:03.676457320Z",
  "published": "2026-12-03T03:11:34.238Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/21b520d7a19ee3a5b64d2a3e914993fe653a22a2"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/5f2ead17963c71d94d643d2a203bd6c0a33108fc"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/6132073655e826052562f90f939f532aac6fbafe"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/6d2fac4a7838bbb617982cbf3d8352e7f9eedd5c"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/cb5303cfe9bc86237f84660994b503c1b9faffb0"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/d764d3f28a38deafe2980f6671764968dcdb9bc5"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/e062baf5680845705d21df415c8f0751c96b0792"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/e96d76f82701213fd2f14660b786f9f82f1d0dc7"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142807.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-142807"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "ocfs2: publish the filecheck owner before adding sysfs attributes"
}