# CVE-2026-142807: ocfs2: publish the filecheck owner before adding sysfs attributes

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **Published:** 2026-12-03T03:11:34.238Z
- **Modified:** 2026-12-03T04:18:14.773Z

## Who should check

- Anyone running Linux \>= 5f483c4abb507d068b326f24e4ea3481db9cda06, \< e96d76f82701213fd2f14660b786f9f82f1d0dc7; \>= 5f483c4abb507d068b326f24e4ea3481db9cda06, \< 21b520d7a19ee3a5b64d2a3e914993fe653a22a2; \>= 5f483c4abb507d068b326f24e4ea3481db9cda06, \< 5f2ead17963c71d94d643d2a203bd6c0a33108fc; \>= 5f483c4abb507d068b326f24e4ea3481db9cda06, \< 6d2fac4a7838bbb617982cbf3d8352e7f9eedd5c; \>= 5f483c4abb507d068b326f24e4ea3481db9cda06, \< 6132073655e826052562f90f939f532aac6fbafe; \>= 5f483c4abb507d068b326f24e4ea3481db9cda06, \< d764d3f28a38deafe2980f6671764968dcdb9bc5; \>= 5f483c4abb507d068b326f24e4ea3481db9cda06, \< cb5303cfe9bc86237f84660994b503c1b9faffb0; \>= 5f483c4abb507d068b326f24e4ea3481db9cda06, \< e062baf5680845705d21df415c8f0751c96b0792
- Anyone running Linux 4.17

## Description

In the Linux kernel, the following vulnerability has been resolved:

ocfs2: publish the filecheck owner before adding sysfs attributes

ocfs2\_filecheck\_create\_sysfs() initializes the filecheck allocation before
calling kobject\_init\_and\_add(), but assigns entry-\>fs\_fcheck only after
that call returns.  The default attribute group can already be visible
while registration is in progress.  A concurrent read can therefore enter
ocfs2\_filecheck\_attr\_show() with a NULL fs\_fcheck and try to lock its
fc\_lock.

Assign the initialized owner before adding the kobject, so every activated
attribute has valid state.  Clear the pointer when addition fails,
preserving the existing teardown guard and error cleanup.

A controlled probe-instrumented test kernel with the original OCFS2
registration ordering produced this Oops during a concurrent sysfs read:

  KASAN: null-ptr-deref in range \[0x0000000000000028-0x000000000000002f\]
  RIP: 0010:kasan\_byte\_accessible+0x15/0x30
  Call Trace:
   \<TASK\>
   \_\_kasan\_check\_byte+0x13/0x50
   lock\_acquire+0x113/0x300
   \_raw\_spin\_lock+0x31/0x40
   ocfs2\_filecheck\_attr\_show+0x138/0x5f0
   ocfs2\_filecheck\_show+0x5d/0x90
   sysfs\_kf\_seq\_show+0x1d3/0x360
   seq\_read\_iter+0x480/0x1110
   kernfs\_fop\_read\_iter+0x419/0x5a0
   vfs\_read+0x7d2/0xc20
   ksys\_read+0x111/0x200
   do\_syscall\_64+0x114/0x620
   entry\_SYSCALL\_64\_after\_hwframe+0x77/0x7f
   \</TASK\>
  Modules linked in:

## Affected and fixed versions

- Linux: \>= 5f483c4abb507d068b326f24e4ea3481db9cda06, \< e96d76f82701213fd2f14660b786f9f82f1d0dc7; \>= 5f483c4abb507d068b326f24e4ea3481db9cda06, \< 21b520d7a19ee3a5b64d2a3e914993fe653a22a2; \>= 5f483c4abb507d068b326f24e4ea3481db9cda06, \< 5f2ead17963c71d94d643d2a203bd6c0a33108fc; \>= 5f483c4abb507d068b326f24e4ea3481db9cda06, \< 6d2fac4a7838bbb617982cbf3d8352e7f9eedd5c; \>= 5f483c4abb507d068b326f24e4ea3481db9cda06, \< 6132073655e826052562f90f939f532aac6fbafe; \>= 5f483c4abb507d068b326f24e4ea3481db9cda06, \< d764d3f28a38deafe2980f6671764968dcdb9bc5; \>= 5f483c4abb507d068b326f24e4ea3481db9cda06, \< cb5303cfe9bc86237f84660994b503c1b9faffb0; \>= 5f483c4abb507d068b326f24e4ea3481db9cda06, \< e062baf5680845705d21df415c8f0751c96b0792 (cvelist)
- Linux: 4.17 (cvelist)

## Technologies

Linux kernel

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-142807. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-142807.md
Affected: Linux >= 5f483c4abb507d068b326f24e4ea3481db9cda06, < e96d76f82701213fd2f14660b786f9f82f1d0dc7; >= 5f483c4abb507d068b326f24e4ea3481db9cda06, < 21b520d7a19ee3a5b64d2a3e914993fe653a22a2; >= 5f483c4abb507d068b326f24e4ea3481db9cda06, < 5f2ead17963c71d94d643d2a203bd6c0a33108fc; >= 5f483c4abb507d068b326f2…
Fixed in: Linux 21b520d7a19ee3a5b64d2a3e914993fe653a22a2, Linux 5f2ead17963c71d94d643d2a203bd6c0a33108fc, Linux 6d2fac4a7838bbb617982cbf3d8352e7f9eedd5c, Linux 6132073655e826052562f90f939f532aac6fbafe

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-142807 being exploited?

There is no confirmed exploitation: CVE-2026-142807 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

### How serious is CVE-2026-142807?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-142807?

Linux \>= 5f483c4abb507d068b326f24e4ea3481db9cda06, \< e96d76f82701213fd2f14660b786f9f82f1d0dc7; \>= 5f483c4abb507d068b326f24e4ea3481db9cda06, \< 21b520d7a19ee3a5b64d2a3e914993fe653a22a2; \>= 5f483c4abb507d068b326f24e4ea3481db9cda06, \< 5f2ead17963c71d94d643d2a203bd6c0a33108fc; \>= 5f483c4abb507d068b326f24e4ea3481db9cda06, \< 6d2fac4a7838bbb617982cbf3d8352e7f9eedd5c; \>= 5f483c4abb507d068b326f24e4ea3481db9cda06, \< 6132073655e826052562f90f939f532aac6fbafe; \>= 5f483c4abb507d068b326f24e4ea3481db9cda06, \< d764d3f28a38deafe2980f6671764968dcdb9bc5; \>= 5f483c4abb507d068b326f24e4ea3481db9cda06, \< cb5303cfe9bc86237f84660994b503c1b9faffb0; \>= 5f483c4abb507d068b326f24e4ea3481db9cda06, \< e062baf5680845705d21df415c8f0751c96b0792; Linux 4.17.

### Is there a fix for CVE-2026-142807?

Yes. Fixed in Linux 21b520d7a19ee3a5b64d2a3e914993fe653a22a2, Linux 5f2ead17963c71d94d643d2a203bd6c0a33108fc, Linux 6d2fac4a7838bbb617982cbf3d8352e7f9eedd5c, Linux 6132073655e826052562f90f939f532aac6fbafe. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-142807?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/e96d76f82701213fd2f14660b786f9f82f1d0dc7>
- other: <https://git.kernel.org/stable/c/21b520d7a19ee3a5b64d2a3e914993fe653a22a2>
- other: <https://git.kernel.org/stable/c/5f2ead17963c71d94d643d2a203bd6c0a33108fc>
- other: <https://git.kernel.org/stable/c/6d2fac4a7838bbb617982cbf3d8352e7f9eedd5c>
- other: <https://git.kernel.org/stable/c/6132073655e826052562f90f939f532aac6fbafe>
- other: <https://git.kernel.org/stable/c/d764d3f28a38deafe2980f6671764968dcdb9bc5>
- other: <https://git.kernel.org/stable/c/cb5303cfe9bc86237f84660994b503c1b9faffb0>
- other: <https://git.kernel.org/stable/c/e062baf5680845705d21df415c8f0751c96b0792>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-142807>

HTML: <https://flawdb.com/CVE-2026-142807> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-142807>
