CVE-2026-90151

NFSv4: remove callback IDR entry on client allocation failure

State
Published
Severity
9.8 Critical
Published
Sep 17, 2026
Updated
Oct 19, 2026
Reserved
Sep 11, 2026

Read the record on cve.org

Description

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

NFSv4: remove callback IDR entry on client allocation failure

nfs4_alloc_client() allocates an NFSv4.0 callback identifier before it finishes setting up the client. If any later initialization step fails, the error path frees the nfs_client directly with nfs_free_client(). That bypasses nfs_put_client(), which is where the callback IDR entry is removed during normal teardown.

A failed allocation can therefore leave cb_ident_idr pointing at a freed nfs_client. A later NFSv4.0 callback lookup by cb_ident would find the stale pointer and take a reference to it.

Make the callback IDR removal helper callable by the allocation failure path, and remove the callback identifier before freeing the client.

This was found by a local static-analysis checker for publish-before-free lifetime bugs and confirmed by manual inspection.

Scores

CVSSScoreVectorSource
3.19.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • f4eecd5da3422e82e88e36c33cbd2595eebcacb1 to before 68c721391b761dbe38d5b0094d2bb6e8489ad92bAffected
  • f4eecd5da3422e82e88e36c33cbd2595eebcacb1 to before 9bfdd0f591307b5198826a0e7a5b2f35f87acd2dAffected
  • f4eecd5da3422e82e88e36c33cbd2595eebcacb1 to before 7c4812eb96bdcafb31a65b12f2aa96659429d1d4Affected
  • f4eecd5da3422e82e88e36c33cbd2595eebcacb1 to before fc95ca82d5ae598c428ab5a00ae69f8526d59371Affected
  • f4eecd5da3422e82e88e36c33cbd2595eebcacb1 to before 80b1c3d5a881f7d9081aa9f46da9742878a0f893Affected
  • f4eecd5da3422e82e88e36c33cbd2595eebcacb1 to before 3f2387e8bfbc4efda5d77c3a11a028d0a119c48fAffected
  • f4eecd5da3422e82e88e36c33cbd2595eebcacb1 to before 5891c03e150920618db0e9c4ea2d772abacdcfd1Affected
  • f4eecd5da3422e82e88e36c33cbd2595eebcacb1 to before d05c2007b3d84ccba11dc6e9cb3202768cc72f14Affected
LinuxLinux
  • 2.6.38Affected
  • before 2.6.38Not affected
  • 5.10.270 through 5.10.*Not affected
  • 5.15.221 through 5.15.*Not affected
  • 6.1.188 through 6.1.*Not affected
  • 6.6.157 through 6.6.*Not affected
  • 6.12.110 through 6.12.*Not affected
  • 6.18.52 through 6.18.*Not affected
  • 7.2.6 through 7.2.*Not affected
  • 7.3 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.