RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1970314 - "stack smashing detected" in CentOS Docker container following upgrade from 8.3.201 to 8.4.2105
Summary: "stack smashing detected" in CentOS Docker container following upgrade from 8...
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: bash
Version: 8.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: beta
: ---
Assignee: Siteshwar Vashisht
QA Contact: Karel Volný
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-06-10 08:48 UTC by INVADE International Ltd.
Modified: 2021-10-12 09:17 UTC (History)
0 users

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-10-12 09:17:28 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description INVADE International Ltd. 2021-06-10 08:48:51 UTC
Description of problem:
Use of non escaped tilde (~) causes buffer overflow.

Raising here as requested in:
https://forums.centos.org/viewtopic.php?f=54&t=77702

Note : I am experiencing this in CentOS. I have no way to test in RHEL.


Version-Release number of selected component (if applicable):
4.4.20-1.el8_4

How reproducible:
Always


Steps to Reproduce:
1. Start a container using the latest (8.3.201) Docker image.

2. dnf makecache

3. dnf upgrade (which upgrades to 8.4.2105)

4. VERSION=~rc1


Actual results:
*** stack smashing detected ***: <unknown> terminated


Expected results:
Either variable set or error to say user rc1 doesn't exist.


Additional info:
Escaping the tilde resolves the problem:
4. VERSION=\~rc1

Not sure if this is a problem with bash itself, it's the environment I am experiencing the problem in.

Comment 1 Siteshwar Vashisht 2021-10-12 09:17:28 UTC
I have not been able to reproduce this bug with 'CentOS Linux release 8.4.2105'. I followed below steps:

On the host:

```
docker pull centos
docker run -it bash
```

Inside the container:

```
# dnf makecache
# dnf upgrade
# VERSION=~rc1
# echo $VERSION
~rc1
```

So it works as expected. I will close this as worksforme.

Please reopen if you are still able to reproduce it.


Note You need to log in before you can comment on or make changes to this bug.