Skip to content

Conversation

@drzymalanet
Copy link

  1. Linked list uses realloc but did not update the pointer in the previous linked list item
    resulting in Use-After-Free error. A backlink_p
    local variable is introduced to update the pointer address after a reallocation.

  2. The local variable chunks_p was not updated after realloc which also resulted in UAF when
    allocating a new element to the linked list.
    A refreshing of the address was added after realloc.

1. Linked list uses realloc but did not update
the pointer in the previous linked list item
resulting in Use-After-Free error. A backlink_p
local variable is introduced to update the pointer
address after a reallocation.

2. The local variable chunks_p was not updated
after realloc which also resulted in UAF when
allocating a new element to the linked list.
A refreshing of the address was added after realloc.
@gatk555
Copy link
Collaborator

gatk555 commented Sep 19, 2025

Doh! Thanks.

@gatk555 gatk555 closed this Sep 19, 2025
@gatk555 gatk555 reopened this Sep 19, 2025
@gatk555 gatk555 merged commit 7aaf8a6 into buserror:master Sep 19, 2025
8 checks passed
@drzymalanet
Copy link
Author

No @gatk555, thank You! :)

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.

2 participants