Skip to content

Uninitialized heap buffer read in get_non_preload_lib_names() #397

Open

Description

@malto101

FastRPC version

v1.0.7

DSP firmware version

QC_IMAGE_VERSION_STRING=DSP.AT.1.0.1-00201-LEMANS-2

SoC and device name

device: iq-9075-evk

Kernel version

6.18.37-02225-g3167b1238438-dirty

What happened?

get_non_preload_lib_names() may read uninitialized heap memory when no matching shared libraries are discovered in the configured DSP library search path.

Steps to reproduce

  1. Create an empty DSP library directory:
mkdir -p /tmp/empty_dsp_libs
export DSP_LIBRARY_PATH=/tmp/empty_dsp_libs
  1. invoke dspqueue_create()

expected behavior would be an empty library search path should produce an empty library list and continue normally.
but the actual behaviorr is that strlen() operates on uninitialized memory, resulting in undefined behavior and potential out-of-bounds reads

Relevant log output

Activity

  1. github-actions commented on Oct 16, 2026

    @github-actions

    qualcomm/fastrpc.triage This issue has been marked as stale due to 30 days of inactivity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions