# CVE-2023-53035: nilfs2: fix kernel-infoleak in nilfs\_ioctl\_wrap\_copy()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.1
- **CVSS:** 7.1 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.29% (percentile 14, 2026-11-28)
- **Published:** 2025-05-02T15:54:54.876Z
- **Modified:** 2026-06-17T06:44:10.157Z

## Who should check

- Anyone running Linux \>= 003ff182fddde09ddfb8d079bbdb02f9d2122082, \< a94932381e8dae4117e9129b3c1282e18aa97b05; \>= 003ff182fddde09ddfb8d079bbdb02f9d2122082, \< 9c5034e9a0e03db8d5e9eabb176340259b5b97e4; \>= 003ff182fddde09ddfb8d079bbdb02f9d2122082, \< 8f5cbf6a8c0e19b062b829c5b7aca01468bb57f6; \>= 003ff182fddde09ddfb8d079bbdb02f9d2122082, \< d18db946cc6a394291539e030df32324285648f7; \>= 003ff182fddde09ddfb8d079bbdb02f9d2122082, \< 5bb105cc72beb9d51bf12f5c657336d2d35bdc5d; \>= 003ff182fddde09ddfb8d079bbdb02f9d2122082, \< 5f33b042f74fc9662eba17f4cd19b07d84bbc6c5; \>= 003ff182fddde09ddfb8d079bbdb02f9d2122082, \< 8a6550b365c0ce2e65905de57dcbfe1f7d629726; \>= 003ff182fddde09ddfb8d079bbdb02f9d2122082, \< 003587000276f81d0114b5ce773d80c119d8cb30
- Anyone running Linux 2.6.31

## Description

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

nilfs2: fix kernel-infoleak in nilfs\_ioctl\_wrap\_copy()

The ioctl helper function nilfs\_ioctl\_wrap\_copy(), which exchanges a
metadata array to/from user space, may copy uninitialized buffer regions
to user space memory for read-only ioctl commands NILFS\_IOCTL\_GET\_SUINFO
and NILFS\_IOCTL\_GET\_CPINFO.

This can occur when the element size of the user space metadata given by
the v\_size member of the argument nilfs\_argv structure is larger than the
size of the metadata element (nilfs\_suinfo structure or nilfs\_cpinfo
structure) on the file system side.

KMSAN-enabled kernels detect this issue as follows:

 BUG: KMSAN: kernel-infoleak in instrument\_copy\_to\_user
 include/linux/instrumented.h:121 \[inline\]
 BUG: KMSAN: kernel-infoleak in \_copy\_to\_user+0xc0/0x100 lib/usercopy.c:33
  instrument\_copy\_to\_user include/linux/instrumented.h:121 \[inline\]
  \_copy\_to\_user+0xc0/0x100 lib/usercopy.c:33
  copy\_to\_user include/linux/uaccess.h:169 \[inline\]
  nilfs\_ioctl\_wrap\_copy+0x6fa/0xc10 fs/nilfs2/ioctl.c:99
  nilfs\_ioctl\_get\_info fs/nilfs2/ioctl.c:1173 \[inline\]
  nilfs\_ioctl+0x2402/0x4450 fs/nilfs2/ioctl.c:1290
  nilfs\_compat\_ioctl+0x1b8/0x200 fs/nilfs2/ioctl.c:1343
  \_\_do\_compat\_sys\_ioctl fs/ioctl.c:968 \[inline\]
  \_\_se\_compat\_sys\_ioctl+0x7dd/0x1000 fs/ioctl.c:910
  \_\_ia32\_compat\_sys\_ioctl+0x93/0xd0 fs/ioctl.c:910
  do\_syscall\_32\_irqs\_on arch/x86/entry/common.c:112 \[inline\]
  \_\_do\_fast\_syscall\_32+0xa2/0x100 arch/x86/entry/common.c:178
  do\_fast\_syscall\_32+0x37/0x80 arch/x86/entry/common.c:203
  do\_SYSENTER\_32+0x1f/0x30 arch/x86/entry/common.c:246
  entry\_SYSENTER\_compat\_after\_hwframe+0x70/0x82

 Uninit was created at:
  \_\_alloc\_pages+0x9f6/0xe90 mm/page\_alloc.c:5572
  alloc\_pages+0xab0/0xd80 mm/mempolicy.c:2287
  \_\_get\_free\_pages+0x34/0xc0 mm/page\_alloc.c:5599
  nilfs\_ioctl\_wrap\_copy+0x223/0xc10 fs/nilfs2/ioctl.c:74
  nilfs\_ioctl\_get\_info fs/nilfs2/ioctl.c:1173 \[inline\]
  nilfs\_ioctl+0x2402/0x4450 fs/nilfs2/ioctl.c:1290
  nilfs\_compat\_ioctl+0x1b8/0x200 fs/nilfs2/ioctl.c:1343
  \_\_do\_compat\_sys\_ioctl fs/ioctl.c:968 \[inline\]
  \_\_se\_compat\_sys\_ioctl+0x7dd/0x1000 fs/ioctl.c:910
  \_\_ia32\_compat\_sys\_ioctl+0x93/0xd0 fs/ioctl.c:910
  do\_syscall\_32\_irqs\_on arch/x86/entry/common.c:112 \[inline\]
  \_\_do\_fast\_syscall\_32+0xa2/0x100 arch/x86/entry/common.c:178
  do\_fast\_syscall\_32+0x37/0x80 arch/x86/entry/common.c:203
  do\_SYSENTER\_32+0x1f/0x30 arch/x86/entry/common.c:246
  entry\_SYSENTER\_compat\_after\_hwframe+0x70/0x82

 Bytes 16-127 of 3968 are uninitialized
 ...

This eliminates the leak issue by initializing the page allocated as
buffer using get\_zeroed\_page().

## Affected and fixed versions

- Linux: \>= 003ff182fddde09ddfb8d079bbdb02f9d2122082, \< a94932381e8dae4117e9129b3c1282e18aa97b05; \>= 003ff182fddde09ddfb8d079bbdb02f9d2122082, \< 9c5034e9a0e03db8d5e9eabb176340259b5b97e4; \>= 003ff182fddde09ddfb8d079bbdb02f9d2122082, \< 8f5cbf6a8c0e19b062b829c5b7aca01468bb57f6; \>= 003ff182fddde09ddfb8d079bbdb02f9d2122082, \< d18db946cc6a394291539e030df32324285648f7; \>= 003ff182fddde09ddfb8d079bbdb02f9d2122082, \< 5bb105cc72beb9d51bf12f5c657336d2d35bdc5d; \>= 003ff182fddde09ddfb8d079bbdb02f9d2122082, \< 5f33b042f74fc9662eba17f4cd19b07d84bbc6c5; \>= 003ff182fddde09ddfb8d079bbdb02f9d2122082, \< 8a6550b365c0ce2e65905de57dcbfe1f7d629726; \>= 003ff182fddde09ddfb8d079bbdb02f9d2122082, \< 003587000276f81d0114b5ce773d80c119d8cb30 (cvelist)
- Linux: 2.6.31 (cvelist)

## Mitigation

- Upgrade Linux to 003587000276f81d0114b5ce773d80c119d8cb30 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2023-53035.md
Affected: Linux >= 003ff182fddde09ddfb8d079bbdb02f9d2122082, < a94932381e8dae4117e9129b3c1282e18aa97b05; >= 003ff182fddde09ddfb8d079bbdb02f9d2122082, < 9c5034e9a0e03db8d5e9eabb176340259b5b97e4; >= 003ff182fddde09ddfb8d079bbdb02f9d2122082, < 8f5cbf6a8c0e19b062b829c5b7aca01468bb57f6; >= 003ff182fddde09ddfb8d07…
Fixed in: Linux 9c5034e9a0e03db8d5e9eabb176340259b5b97e4, Linux 8f5cbf6a8c0e19b062b829c5b7aca01468bb57f6, Linux 5bb105cc72beb9d51bf12f5c657336d2d35bdc5d, Linux 5f33b042f74fc9662eba17f4cd19b07d84bbc6c5, Linux 8a6550b365c0ce2e65905de57dcbfe1f7d629726, Linux 003587000276f81d0114b5ce773d80c119d8cb30

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-2023-53035 being exploited?

There is no confirmed exploitation: CVE-2023-53035 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.29% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2023-53035?

High: CVSS 7.1 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2023-53035?

Linux \>= 003ff182fddde09ddfb8d079bbdb02f9d2122082, \< a94932381e8dae4117e9129b3c1282e18aa97b05; \>= 003ff182fddde09ddfb8d079bbdb02f9d2122082, \< 9c5034e9a0e03db8d5e9eabb176340259b5b97e4; \>= 003ff182fddde09ddfb8d079bbdb02f9d2122082, \< 8f5cbf6a8c0e19b062b829c5b7aca01468bb57f6; \>= 003ff182fddde09ddfb8d079bbdb02f9d2122082, \< d18db946cc6a394291539e030df32324285648f7; \>= 003ff182fddde09ddfb8d079bbdb02f9d2122082, \< 5bb105cc72beb9d51bf12f5c657336d2d35bdc5d; \>= 003ff182fddde09ddfb8d079bbdb02f9d2122082, \< 5f33b042f74fc9662eba17f4cd19b07d84bbc6c5; \>= 003ff182fddde09ddfb8d079bbdb02f9d2122082, \< 8a6550b365c0ce2e65905de57dcbfe1f7d629726; \>= 003ff182fddde09ddfb8d079bbdb02f9d2122082, \< 003587000276f81d0114b5ce773d80c119d8cb30; Linux 2.6.31.

### Is there a fix for CVE-2023-53035?

Yes. Fixed in Linux 9c5034e9a0e03db8d5e9eabb176340259b5b97e4, Linux 8f5cbf6a8c0e19b062b829c5b7aca01468bb57f6, Linux 5bb105cc72beb9d51bf12f5c657336d2d35bdc5d, Linux 5f33b042f74fc9662eba17f4cd19b07d84bbc6c5, Linux 8a6550b365c0ce2e65905de57dcbfe1f7d629726, Linux 003587000276f81d0114b5ce773d80c119d8cb30. Upgrade Linux to 003587000276f81d0114b5ce773d80c119d8cb30 or later.

### How do I check if I'm affected by CVE-2023-53035?

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

- patch: <https://git.kernel.org/stable/c/a94932381e8dae4117e9129b3c1282e18aa97b05>
- patch: <https://git.kernel.org/stable/c/9c5034e9a0e03db8d5e9eabb176340259b5b97e4>
- patch: <https://git.kernel.org/stable/c/8f5cbf6a8c0e19b062b829c5b7aca01468bb57f6>
- patch: <https://git.kernel.org/stable/c/d18db946cc6a394291539e030df32324285648f7>
- patch: <https://git.kernel.org/stable/c/5bb105cc72beb9d51bf12f5c657336d2d35bdc5d>
- patch: <https://git.kernel.org/stable/c/5f33b042f74fc9662eba17f4cd19b07d84bbc6c5>
- patch: <https://git.kernel.org/stable/c/8a6550b365c0ce2e65905de57dcbfe1f7d629726>
- patch: <https://git.kernel.org/stable/c/003587000276f81d0114b5ce773d80c119d8cb30>

## 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-2023-53035>

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