Skip to content

net: dns: OOB memory write #90005

@JordanYates

Description

@JordanYates

Describe the bug

An out-of-bounds memory write occurs whenever dns_dispatcher_unregister comes across a file descriptor with a negative number. All file descriptors are initialised to -1 in dns_resolve_init_locked.

Expected behavior

No OOB write should occur.

Impact

Whichever variable is assigned to the memory just before dispatch_table has memory erroneously set to 0 whenever dns_dispatcher_unregister runs.

Environment (please complete the following information):

  • Zephyr 4.1

Metadata

Metadata

Assignees

Labels

BackportBackport PR and backport failure issuesarea: NetworkingbugThe issue is a bug, or the PR is fixing a bugpriority: mediumMedium impact/importance bug

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions