Sign in
Sign up
Explore
Enterprise
Education
Search
Help
Terms of use
About Us
Explore
Enterprise
Education
Gitee Premium
Gitee AI
AI teammates
Sign in
Sign up
Fetch the repository succeeded.
description of repo status
Donate
Please sign in before you donate.
Cancel
Sign in
Scan WeChat QR to Pay
Cancel
Complete
Prompt
Switch to Alipay.
OK
Cancel
Watch
Unwatch
Watching
Releases Only
Ignoring
9
Star
1
Fork
41
src-openEuler
/
rsyslog
Closed
Code
Issues
2
Pull Requests
1
Wiki
Insights
Pipelines
Service
JavaDoc
PHPDoc
Quality Analysis
Jenkins for Gitee
Tencent CloudBase
Tencent Cloud Serverless
悬镜安全
Aliyun SAE
Codeblitz
SBOM
DevLens
Don’t show this again
Update failed. Please try again later!
Remove this flag
Content Risk Flag
This task is identified by
as the content contains sensitive information such as code security bugs, privacy leaks, etc., so it is only accessible to contributors of this repository.
例行回合上游社区补丁
Done
#ICQS5U
Bug
peulerosci
Opened this issue
2025-08-04 10:26
<h3>优先级:</h3><p>次要</p><p></p><h3>原因分析:</h3><p></p><p>【是否新引入rpm包,是否进行了安全编译选项扫描】</p><p></p><p>不涉及</p><p></p><p>【定位分析】</p><p></p><p>回合社区补丁</p><table ><tr><td colSpan="1" rowSpan="1">软件包</td><td colSpan="1" rowSpan="1">CommitId</td><td colSpan="1" rowSpan="1">描述</td></tr><tr><td colSpan="1" rowSpan="1">openEuler:rsyslog</td><td colSpan="1" rowSpan="1">3ccbc99a1bf6b2da543c9db9ac03aca2019fc50f</td><td colSpan="1" rowSpan="1">rainerscript: do not try to call a function if it does not exist</td></tr><tr><td colSpan="1" rowSpan="1">openEuler:rsyslog</td><td colSpan="1" rowSpan="1">56deafaa49f039ede3f02428c5e8c56e4493cd55</td><td colSpan="1" rowSpan="1">gnutls bugfix: Add timeout to GnuTLS handshake<br/> <br/> When forwarding logs to a remote server, it appears that an rsyslogclient with gtls netstream driver will wait forever on TLS handshaketo complete if the server doesn't answer. Adding a timeout fixesthe error.</td></tr><tr><td colSpan="1" rowSpan="1">openEuler:rsyslog</td><td colSpan="1" rowSpan="1">d24fd00c935e167a095f4725262ad52546404552</td><td colSpan="1" rowSpan="1">gnutls bugfix: Avoid blocking sockets during TLS handshake<br/> <br/> When forwarding logs to a TLS server, using a blocking socketcan lead to indefinite waiting during the gnutls_handshake()call if the server does not respond as expected.This commit modifies the behavior to use non-blocking sockets,ensuring that the rsyslog client does not hang indefinitelywaiting for a response.</td></tr><tr><td colSpan="1" rowSpan="1">openEuler:rsyslog</td><td colSpan="1" rowSpan="1">3c00ecb73e72abaa436a06421980cb02de5d0515</td><td colSpan="1" rowSpan="1">core: fix potential NULL ptr access on HUP in very early startup phase<br/> <br/> found be clang static analyzer, no report from practice. This couldpotentially happend during early startup when the config was notyet full read while HUP was received.</td></tr><tr><td colSpan="1" rowSpan="1">openEuler:rsyslog</td><td colSpan="1" rowSpan="1">ff6f4ceeed8ba715ea0e26d36e2afac2f6c07931</td><td colSpan="1" rowSpan="1">gnutls TLS driver: fix small memory leak<br/> <br/> found by CoverityScansee also https://github.com/rsyslog/rsyslog/pull/5329</td></tr><tr><td colSpan="1" rowSpan="1">openEuler:rsyslog</td><td colSpan="1" rowSpan="1">6c04651db771fc44f24d3bef499bdf6837633042</td><td colSpan="1" rowSpan="1">rsyslog startup bugfix: cosmetic memory leak<br/> <br/> This was detected by Coverity Scan, and we fix it to keep Coveritysilent. It is a < 100 byte mem leak that occurs once on startup.</td></tr><tr><td colSpan="1" rowSpan="1">openEuler:rsyslog</td><td colSpan="1" rowSpan="1">6b1b15842c7bb71948c37c362053bd1a1cec98d8</td><td colSpan="1" rowSpan="1">core: fix potential misadressing in sigmask<br/> <br/> This code is inside rsyslog for many years w/o any problems, butduring new testing we saw that the signal mask is potentially notproperly initialized.</td></tr><tr><td colSpan="1" rowSpan="1">openEuler:rsyslog</td><td colSpan="1" rowSpan="1">0ac9aafb72588ff6c5bc0923fee2dcc7076f4855</td><td colSpan="1" rowSpan="1">omfwd: fix segfault in UDP freeaddrinfo</td></tr><tr><td colSpan="1" rowSpan="1">openEuler:rsyslog</td><td colSpan="1" rowSpan="1">09a3448a3e6ac5aa7065fd56d229a66eacece4db</td><td colSpan="1" rowSpan="1">covscan: remove defect type of RESOURCE_LEAK<br/> <br/> Fix memory leaks when evaluating variable in rainerscript</td></tr><tr><td colSpan="1" rowSpan="1">openEuler:rsyslog</td><td colSpan="1" rowSpan="1">e06569ecea1b5c0cd1c35699f31ab3929d431d2a</td><td colSpan="1" rowSpan="1">Fix a buffer overflow when the argument to replace is empty<br/> <br/> We have these expressions in rsyslogd.conf.<br/> <br/> set $!rsyslog_FileFormat = exec_template(RSYSLOG_FileFormat)<br/> set $!localheader = re_extract($!rsyslog_FileFormat, [^ ]+.* +port[0-9], 0, 0, );<br/> set $!localpattern = re_extract($!rsyslog_FileFormat, [^ ]+ +[^ ]+ +port[0-9], 0, 0, );<br/> set $!localheader = replace($!localheader, $!localpattern, );<br/> <br/> We have a message like this arriving.<br/> <br/> <30>Feb 24 22:08:21 hostname port03 'label' RXDATA: \n<br/> <br/> It was observed that when 2 of these messages arrive in a row, rsyslogd<br/> crashes. This is clearly due to memory corruption, as the crash comes<br/> from within calloc.<br/> <br/> Unlike the crash, valgrind only complained about the first message. It<br/> reported that the 'find' variable was being accessed in the replace<br/> function, reading past allocated data.<br/> <br/> The localpattern variable ends up empty (null?), because the pattern<br/> fails to match. This ends up passed into the replace function as an<br/> es_str_t with a length and buffer length of 0. There is no string data,<br/> not even a null terminator.<br/> <br/> As a result, the 'find' pointer is invalid, and accessing it is an<br/> error. Protect against accessing the 'find' pointer when the buffer is<br/> empty by exiting the two loops when j == lfind and lfind == 0.<br/> <br/> This removes the report from valgrind, and stops rsyslogd from crashing.</td></tr></table><p></p><p></p><p></p><p>【对外部是否有影响】</p><p></p><p>不涉及</p><p></p><p></p><p></p><p></p><p></p> **二、缺陷分析结构反馈** 影响性分析说明: 缺陷严重等级:(Critical/High/Moderate/Low) 缺陷根因说明: 受影响版本排查(受影响/不受影响): openEuler-20.03-LTS-SP4 openEuler-22.03-LTS-SP3 openEuler-22.03-LTS-SP4 openEuler-24.03-LTS openEuler-24.03-LTS-SP1 openEuler-24.03-LTS-SP2 修复是否涉及abi变化(是/否): openEuler-20.03-LTS-SP4 openEuler-22.03-LTS-SP3 openEuler-22.03-LTS-SP4 openEuler-24.03-LTS openEuler-24.03-LTS-SP1 openEuler-24.03-LTS-SP2
<h3>优先级:</h3><p>次要</p><p></p><h3>原因分析:</h3><p></p><p>【是否新引入rpm包,是否进行了安全编译选项扫描】</p><p></p><p>不涉及</p><p></p><p>【定位分析】</p><p></p><p>回合社区补丁</p><table ><tr><td colSpan="1" rowSpan="1">软件包</td><td colSpan="1" rowSpan="1">CommitId</td><td colSpan="1" rowSpan="1">描述</td></tr><tr><td colSpan="1" rowSpan="1">openEuler:rsyslog</td><td colSpan="1" rowSpan="1">3ccbc99a1bf6b2da543c9db9ac03aca2019fc50f</td><td colSpan="1" rowSpan="1">rainerscript: do not try to call a function if it does not exist</td></tr><tr><td colSpan="1" rowSpan="1">openEuler:rsyslog</td><td colSpan="1" rowSpan="1">56deafaa49f039ede3f02428c5e8c56e4493cd55</td><td colSpan="1" rowSpan="1">gnutls bugfix: Add timeout to GnuTLS handshake<br/> <br/> When forwarding logs to a remote server, it appears that an rsyslogclient with gtls netstream driver will wait forever on TLS handshaketo complete if the server doesn't answer. Adding a timeout fixesthe error.</td></tr><tr><td colSpan="1" rowSpan="1">openEuler:rsyslog</td><td colSpan="1" rowSpan="1">d24fd00c935e167a095f4725262ad52546404552</td><td colSpan="1" rowSpan="1">gnutls bugfix: Avoid blocking sockets during TLS handshake<br/> <br/> When forwarding logs to a TLS server, using a blocking socketcan lead to indefinite waiting during the gnutls_handshake()call if the server does not respond as expected.This commit modifies the behavior to use non-blocking sockets,ensuring that the rsyslog client does not hang indefinitelywaiting for a response.</td></tr><tr><td colSpan="1" rowSpan="1">openEuler:rsyslog</td><td colSpan="1" rowSpan="1">3c00ecb73e72abaa436a06421980cb02de5d0515</td><td colSpan="1" rowSpan="1">core: fix potential NULL ptr access on HUP in very early startup phase<br/> <br/> found be clang static analyzer, no report from practice. This couldpotentially happend during early startup when the config was notyet full read while HUP was received.</td></tr><tr><td colSpan="1" rowSpan="1">openEuler:rsyslog</td><td colSpan="1" rowSpan="1">ff6f4ceeed8ba715ea0e26d36e2afac2f6c07931</td><td colSpan="1" rowSpan="1">gnutls TLS driver: fix small memory leak<br/> <br/> found by CoverityScansee also https://github.com/rsyslog/rsyslog/pull/5329</td></tr><tr><td colSpan="1" rowSpan="1">openEuler:rsyslog</td><td colSpan="1" rowSpan="1">6c04651db771fc44f24d3bef499bdf6837633042</td><td colSpan="1" rowSpan="1">rsyslog startup bugfix: cosmetic memory leak<br/> <br/> This was detected by Coverity Scan, and we fix it to keep Coveritysilent. It is a < 100 byte mem leak that occurs once on startup.</td></tr><tr><td colSpan="1" rowSpan="1">openEuler:rsyslog</td><td colSpan="1" rowSpan="1">6b1b15842c7bb71948c37c362053bd1a1cec98d8</td><td colSpan="1" rowSpan="1">core: fix potential misadressing in sigmask<br/> <br/> This code is inside rsyslog for many years w/o any problems, butduring new testing we saw that the signal mask is potentially notproperly initialized.</td></tr><tr><td colSpan="1" rowSpan="1">openEuler:rsyslog</td><td colSpan="1" rowSpan="1">0ac9aafb72588ff6c5bc0923fee2dcc7076f4855</td><td colSpan="1" rowSpan="1">omfwd: fix segfault in UDP freeaddrinfo</td></tr><tr><td colSpan="1" rowSpan="1">openEuler:rsyslog</td><td colSpan="1" rowSpan="1">09a3448a3e6ac5aa7065fd56d229a66eacece4db</td><td colSpan="1" rowSpan="1">covscan: remove defect type of RESOURCE_LEAK<br/> <br/> Fix memory leaks when evaluating variable in rainerscript</td></tr><tr><td colSpan="1" rowSpan="1">openEuler:rsyslog</td><td colSpan="1" rowSpan="1">e06569ecea1b5c0cd1c35699f31ab3929d431d2a</td><td colSpan="1" rowSpan="1">Fix a buffer overflow when the argument to replace is empty<br/> <br/> We have these expressions in rsyslogd.conf.<br/> <br/> set $!rsyslog_FileFormat = exec_template(RSYSLOG_FileFormat)<br/> set $!localheader = re_extract($!rsyslog_FileFormat, [^ ]+.* +port[0-9], 0, 0, );<br/> set $!localpattern = re_extract($!rsyslog_FileFormat, [^ ]+ +[^ ]+ +port[0-9], 0, 0, );<br/> set $!localheader = replace($!localheader, $!localpattern, );<br/> <br/> We have a message like this arriving.<br/> <br/> <30>Feb 24 22:08:21 hostname port03 'label' RXDATA: \n<br/> <br/> It was observed that when 2 of these messages arrive in a row, rsyslogd<br/> crashes. This is clearly due to memory corruption, as the crash comes<br/> from within calloc.<br/> <br/> Unlike the crash, valgrind only complained about the first message. It<br/> reported that the 'find' variable was being accessed in the replace<br/> function, reading past allocated data.<br/> <br/> The localpattern variable ends up empty (null?), because the pattern<br/> fails to match. This ends up passed into the replace function as an<br/> es_str_t with a length and buffer length of 0. There is no string data,<br/> not even a null terminator.<br/> <br/> As a result, the 'find' pointer is invalid, and accessing it is an<br/> error. Protect against accessing the 'find' pointer when the buffer is<br/> empty by exiting the two loops when j == lfind and lfind == 0.<br/> <br/> This removes the report from valgrind, and stops rsyslogd from crashing.</td></tr></table><p></p><p></p><p></p><p>【对外部是否有影响】</p><p></p><p>不涉及</p><p></p><p></p><p></p><p></p><p></p> **二、缺陷分析结构反馈** 影响性分析说明: 缺陷严重等级:(Critical/High/Moderate/Low) 缺陷根因说明: 受影响版本排查(受影响/不受影响): openEuler-20.03-LTS-SP4 openEuler-22.03-LTS-SP3 openEuler-22.03-LTS-SP4 openEuler-24.03-LTS openEuler-24.03-LTS-SP1 openEuler-24.03-LTS-SP2 修复是否涉及abi变化(是/否): openEuler-20.03-LTS-SP4 openEuler-22.03-LTS-SP3 openEuler-22.03-LTS-SP4 openEuler-24.03-LTS openEuler-24.03-LTS-SP1 openEuler-24.03-LTS-SP2
Comments (
4
)
Sign in
to comment
Status
Done
Backlog
已挂起
Fixing
Confirmed
Done
Accepted
Canceled
Assignees
Not set
yanan-rock
yanan-rock
Assignee
Collaborator
+Assign
+Mention
Labels
sig/Base-service
Not set
Projects
Unprojected
Unprojected
Milestones
No related milestones
No related milestones
Pull Requests
None yet
None yet
Successfully merging a pull request will close this issue.
Branches
No related branch
Branches (
-
)
Tags (
-
)
Planed to start   -   Planed to end
-
Top level
Not Top
Top Level: High
Top Level: Medium
Top Level: Low
Priority
Not specified
Serious
Main
Secondary
Unimportant
Duration
(hours)
参与者(2)
1
https://gitee.com/src-openeuler/rsyslog.git
git@gitee.com:src-openeuler/rsyslog.git
src-openeuler
rsyslog
rsyslog
Going to Help Center
Search
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
Comment
Repository Report
Back to the top
Login prompt
This operation requires login to the code cloud account. Please log in before operating.
Go to login
No account. Register