Linux
NFSv4.1: zero referring call lists before decoding
In the Linux kernel, the following vulnerability has been resolved: NFSv4.1: zero referring call lists before decoding decode_cb_sequence_args() allocates csa_rclists with kmalloc_objs(), so each referring_call_list starts uninitialized. decode_rc_list() assigns rcl_refcalls only when rcl_nrefcalls is nonzero. A valid list with zero referring calls therefore leaves the pointer uninitialized, and nfs4_callback_sequence() later passes stale slab contents to kfree(). Allocate csa_rclists with kzalloc_objs() so every rcl_refcalls member is NULL from the beginning, including valid empty referring call lists.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 4aece6a19cf7f474f15eb861ba74db4479884ce3, < 810f6b3a29ac96fdc16909132b31627dae6824c2
- >= 4aece6a19cf7f474f15eb861ba74db4479884ce3, < ed54460caf5b5aa65ec03c9a6032d831f39f19f5
- >= 4aece6a19cf7f474f15eb861ba74db4479884ce3, < 7510a5b9edec9d9536a4e69f10edfb2592e6cf7f
- >= 4aece6a19cf7f474f15eb861ba74db4479884ce3, < f4d23937e1c41995c2f54af26c89b5e48a41c299
- >= 4aece6a19cf7f474f15eb861ba74db4479884ce3, < f31f3c042e024aef437cda42f0424ae8d4594b6c
- >= 4aece6a19cf7f474f15eb861ba74db4479884ce3, < 8fa4804fe62ca4155a2d8fc2789d630376cbf2fc
Fixed in 810f6b3a29ac96fdc16909132b31627dae6824c2, ed54460caf5b5aa65ec03c9a6032d831f39f19f5, 7510a5b9edec9d9536a4e69f10edfb2592e6cf7f, f4d23937e1c41995c2f54af26c89b5e48a41c299, f31f3c042e024aef437cda42f0424ae8d4594b6c, 8fa4804fe62ca4155a2d8fc2789d630376cbf2fc
- 2.6.31
Fixed in 0, 6.1.191, 6.6.160, 6.12.114, 6.18.57, 7.2.6, 7.3
Mitigation
Upgrade Linux to 810f6b3a29ac96fdc16909132b31627dae6824c2 or ed54460caf5b5aa65ec03c9a6032d831f39f19f5 or 7510a5b9edec9d9536a4e69f10edfb2592e6cf7f or f4d23937e1c41995c2f54af26c89b5e48a41c299 or f31f3c042e024aef437cda42f0424ae8d4594b6c or 8fa4804fe62ca4155a2d8fc2789d630376cbf2fc or later.
Upgrade Linux to 0 or 6.1.191 or 6.6.160 or 6.12.114 or 6.18.57 or 7.2.6 or 7.3 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.