Skip to content

Conversation

@sinclairjw
Copy link
Contributor

The socket tables are allocated in the constructor for WinSockets, but any failure to allocate is not subsequently checked before using the tables in the parsing routine. This was causing a crash in (possibly temporary) low-memory scenarios.

The fix is to simply check the tables are not null before using them. The fix is to the only location in the code where the tables are referenced.

@sinclairjw sinclairjw requested review from a team as code owners September 10, 2024 10:42
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Sep 10, 2024

CLA Signed


The committers listed above are authorized under a signed CLA.

@directionless directionless merged commit fc7e080 into osquery:master Sep 19, 2024
@directionless directionless changed the title Fix crash in socket table parsing Fix crash in socket table parsing on windows Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants