REDHAT-BUG-2432666: Null Pointer Dereference

Published Jan 25, 2026
·
Updated

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

lib/buildid: use kernelread() for sleepable context

Prevent a "BUG: unable to handle kernel NULL pointer dereference in filemapreadfolio".

For the sleepable context, convert freader to use kernelread() instead of direct page cache access via readcachefolio(). This simplifies the faultable code path by using the standard kernel file reading interface which handles all the complexity of reading file data.

At the moment we are not changing the code for non-sleepable context which uses filemapgetfolio() and only succeeds if the target folios are already in memory and up-to-date. The reason is to keep the patch simple and easier to backport to stable kernels.

Syzbot repro does not crash the kernel anymore and the selftests run successfully.

In the follow up we will make kernelread() with IOCBNOWAIT work for non-sleepable contexts. In addition, I would like to replace the secretmem check with a more generic approach and will add fstest for the buildid code.

Affected Software

1 affected component
Linux Linux kernel

Event History

Jan 25, 2026
Data Sourced
via Red Hat·03:02 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

Which build ID reading paths are changed by the fix?

The fix changes the sleepable-context reader to use __kernel_read() rather than direct page-cache access through read_cache_folio(). The non-sleepable path is not changed; it continues to use filemap_get_folio() and succeeds only when the target folios are already resident and up-to-date.

2

What evidence is provided that the fix addresses the failure?

The supplied Syzbot reproducer no longer crashes the kernel after the change. The relevant selftests also complete successfully.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203