Skip to content

lib-manager: fix a NULL dereference#10925

Merged
kv2019i merged 1 commit into
thesofproject:mainfrom
lyakh:libm-null
Jun 17, 2026
Merged

lib-manager: fix a NULL dereference#10925
kv2019i merged 1 commit into
thesofproject:mainfrom
lyakh:libm-null

Conversation

@lyakh

@lyakh lyakh commented Jun 16, 2026

Copy link
Copy Markdown
Collaborator

lib_manager_get_module_manifest() can return NULL, if it is then passed to module_is_llext() as an argument, it will lead to an exception. Check for NULL before calling module_is_llext().

lib_manager_get_module_manifest() can return NULL, if it is then
passed to module_is_llext() as an argument, it will lead to an
exception. Check for NULL before calling module_is_llext().

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Copilot AI review requested due to automatic review settings June 16, 2026 12:55

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR prevents a potential NULL dereference in the library loading path by guarding the result of lib_manager_get_module_manifest() before passing it to module_is_llext().

Changes:

  • Add a NULL check for mod before calling module_is_llext(mod) in lib_manager_load_library().

@kv2019i kv2019i merged commit 830e14f into thesofproject:main Jun 17, 2026
45 checks passed
@lyakh lyakh deleted the libm-null branch June 17, 2026 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants