LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-22-2022, 04:42 PM   #1
metaed
Member
 
Registered: Apr 2022
Location: US
Distribution: Slackware64 15.0
Posts: 369

Rep: Reputation: 172Reputation: 172
patch: sysklogd 2.4.0: prevent overread when scanning the kernel message buffer


I patched troglobit sysklogd 2.4.0 to avoid the possibility of advancing past the end of a null terminated string, by always testing the value at the pointer before advancing the pointer.

Patch is here: https://github.com/troglobit/sysklogd/pull/52/files

I do not know of a real-world condition that could trigger this buffer overread. A truncated kernel message buffer would trigger it, and I don't think that's a realistic possibility. But processes running as root should bend over backwards to avoid overread.
 
Old 06-23-2022, 12:02 AM   #2
Mark Pettit
Member
 
Registered: Dec 2008
Location: Cape Town, South Africa
Distribution: Slackware 15.0
Posts: 619

Rep: Reputation: 299Reputation: 299Reputation: 299
Computer says NO.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
patch: sysklogd 2.4.0 corrupts logfiles when kernel messages contain control codes metaed Slackware 0 06-24-2022 12:50 AM
patch: sysklogd 2.3.0 truncates messages when writing to a tty metaed Slackware 0 05-15-2022 12:53 AM
What is the difference between the free buffer and buffer in the buffer hash queue? Swagata Linux - Enterprise 0 05-25-2006 11:57 PM
sysklogd fails possibly kern.log after upgrading to 686 kernel in ubuntu towsonu2003 Linux - Newbie 0 10-30-2005 10:35 PM
sysklogd sending logs out the wrong interface slizadel Linux - Networking 1 06-10-2004 07:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration